function 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  - Returns the label for the submit button.
 - ConditionPluginBase::buildConfigurationForm in core/
lib/ Drupal/ Core/ Condition/ ConditionPluginBase.php  - Form constructor.
 - ConditionTestDualUser::summary in core/
modules/ system/ tests/ modules/ condition_test/ src/ Plugin/ Condition/ ConditionTestDualUser.php  - Provides a human readable summary of the condition's configuration.
 - 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.
 - 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
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.