Translation::$translation

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Annotation/Translation.php \Drupal\Core\Annotation\Translation::translation
  2. 8.9.x core/lib/Drupal/Core/Annotation/Translation.php \Drupal\Core\Annotation\Translation::translation
  3. 10 core/lib/Drupal/Core/Annotation/Translation.php \Drupal\Core\Annotation\Translation::translation

The string translation object.

Type: \Drupal\Core\StringTranslation\TranslatableMarkup

File

core/lib/Drupal/Core/Annotation/Translation.php, line 60

Class

Translation
Defines a translatable annotation object.

Namespace

Drupal\Core\Annotation

Code

protected $translation;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.