function ContextAwarePluginAssignmentTrait::t
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait::t()
- 8.9.x core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait::t()
- 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
20 calls to ContextAwarePluginAssignmentTrait::t()
- AddBlockForm::submitLabel in core/
modules/ layout_builder/ src/ Form/ AddBlockForm.php - ConditionPluginBase::buildConfigurationForm in core/
lib/ Drupal/ Core/ Condition/ ConditionPluginBase.php - ConditionTestDualUser::summary in core/
modules/ system/ tests/ modules/ condition_test/ src/ Plugin/ Condition/ ConditionTestDualUser.php - ConditionTestNoExistingType::summary in core/
modules/ system/ tests/ modules/ condition_test/ src/ Plugin/ Condition/ ConditionTestNoExistingType.php - ContextAwarePluginAssignmentTrait::addContextAssignmentElement in core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginAssignmentTrait.php - Builds a form element for assigning a context to a given slot.
File
-
core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginAssignmentTrait.php, line 15
Class
- ContextAwarePluginAssignmentTrait
- Handles context assignments for context-aware plugins.
Namespace
Drupal\Core\PluginCode
protected abstract 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.