You are here

public function TranslationWrapper::__toString in Service Container 7.2

Same name and namespace in other branches
  1. 7 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\StringTranslation

Code

public function __toString() {
  return $this
    ->render();
}