class TranslationWrapper
Same name in other branches
- 9 core/lib/Drupal/Core/StringTranslation/TranslationWrapper.php \Drupal\Core\StringTranslation\TranslationWrapper
- 10 core/lib/Drupal/Core/StringTranslation/TranslationWrapper.php \Drupal\Core\StringTranslation\TranslationWrapper
- 11.x core/lib/Drupal/Core/StringTranslation/TranslationWrapper.php \Drupal\Core\StringTranslation\TranslationWrapper
Provides translatable string class.
Hierarchy
- class \Drupal\Component\Render\FormattableMarkup implements \Drupal\Component\Render\MarkupInterface, \Drupal\Component\Render\Countable
- class \Drupal\Core\StringTranslation\TranslatableMarkup extends \Drupal\Component\Render\FormattableMarkup uses \Drupal\Component\Utility\ToStringTrait
- class \Drupal\Core\StringTranslation\TranslationWrapper extends \Drupal\Core\StringTranslation\TranslatableMarkup
- class \Drupal\Core\StringTranslation\TranslatableMarkup extends \Drupal\Component\Render\FormattableMarkup uses \Drupal\Component\Utility\ToStringTrait
Expanded class hierarchy of TranslationWrapper
Deprecated
in drupal:8.0.0 and is removed from drupal:9.0.0. Use the \Drupal\Core\StringTranslation\TranslatableMarkup class instead.
File
-
core/
lib/ Drupal/ Core/ StringTranslation/ TranslationWrapper.php, line 11
Namespace
Drupal\Core\StringTranslationView source
class TranslationWrapper extends TranslatableMarkup {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.