public function TranslationWrapper::__toString in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Core/StringTranslation/TranslationWrapper.php \Drupal\Core\StringTranslation\TranslationWrapper::__toString()
Implements the magic __toString() method.
File
- lib/
Drupal/ Core/ StringTranslation/ TranslationWrapper.php, line 97 - Contains \Drupal\Core\StringTranslation\TranslationWrapper.
Class
- TranslationWrapper
- Provides a class to wrap a translatable string.
Namespace
Drupal\Core\StringTranslationCode
public function __toString() {
return $this
->render();
}