public TranslatableMarkup::render()
Renders the object as a string.
Return value
string The translated string.
Overrides ToStringTrait::render
File
- core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 197
Class
- TranslatableMarkup
- Provides translatable markup class.
Namespace
Drupal\Core\StringTranslation
Code
1 2 3 4 5 6 7 8 9 10 11 | 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; } |
Please login to continue.