abstract protected function ContextAwarePluginAssignmentTrait::t in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait::t()
Ensures the t() method is available.
See also
\Drupal\Core\StringTranslation\StringTranslationTrait
16 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
protected abstract function t($string, array $args = [], array $options = []);