public TranslatableMarkup::render()
Renders the object as a string.
string The translated string.
Overrides ToStringTrait::render
public function render() { if (!isset($this->translatedMarkup)) { $this->translatedMarkup = $this->getStringTranslation()->translateString($this); } // Handle any replacements. if ($args = $this->getArguments()) { return $this->placeholderFormat($this->translatedMarkup, $args); } return $this->translatedMarkup; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StringTranslation!TranslatableMarkup.php/function/TranslatableMarkup::render/8.1.x