YamlDiscovery::$translatableProperties

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php \Drupal\Core\Plugin\Discovery\YamlDiscovery::translatableProperties
  2. 8.9.x core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php \Drupal\Core\Plugin\Discovery\YamlDiscovery::translatableProperties
  3. 10 core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php \Drupal\Core\Plugin\Discovery\YamlDiscovery::translatableProperties

Contains an array of translatable properties passed along to t().

Type: array

See also

\Drupal\Core\Plugin\Discovery\YamlDiscovery::addTranslatableProperty()

File

core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php, line 39

Class

YamlDiscovery
Allows YAML files to define plugin definitions.

Namespace

Drupal\Core\Plugin\Discovery

Code

protected $translatableProperties = [];

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