public function TranslationWrapper::render in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Core/StringTranslation/TranslationWrapper.php \Drupal\Core\StringTranslation\TranslationWrapper::render()
Renders the object as a string.
Return value
string The translated string.
1 call to TranslationWrapper::render()
- TranslationWrapper::__toString in lib/
Drupal/ Core/ StringTranslation/ TranslationWrapper.php - Implements the magic __toString() method.
File
- lib/
Drupal/ Core/ StringTranslation/ TranslationWrapper.php, line 107 - Contains \Drupal\Core\StringTranslation\TranslationWrapper.
Class
- TranslationWrapper
- Provides a class to wrap a translatable string.
Namespace
Drupal\Core\StringTranslationCode
public function render() {
return $this
->t($this->string, $this->arguments, $this->options);
}