function ContextAwarePluginAssignmentTrait::t

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait::t()

Ensures the t() method is available.

See also

\Drupal\Core\StringTranslation\StringTranslationTrait

6 calls to ContextAwarePluginAssignmentTrait::t()
AddBlockForm::submitLabel in core/modules/layout_builder/src/Form/AddBlockForm.php
Returns the label for the submit button.
ConditionTestNoExistingType::summary in core/modules/system/tests/modules/condition_test/src/Plugin/Condition/ConditionTestNoExistingType.php
Provides a human readable summary of the condition's configuration.
Language::buildConfigurationForm in core/modules/language/src/Plugin/Condition/Language.php
Form constructor.
Language::summary in core/modules/language/src/Plugin/Condition/Language.php
Provides a human readable summary of the condition's configuration.
MultiWidthLayoutBase::buildConfigurationForm in core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php
Form constructor.

... See full list

File

core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php, line 15

Class

ContextAwarePluginAssignmentTrait
Handles context assignments for context-aware plugins.

Namespace

Drupal\Core\Plugin

Code

abstract protected function t($string, array $args = [], array $options = []);

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