You are here

abstract protected function ContextAwarePluginAssignmentTrait::t in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait::t()
  2. 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

5 calls to ContextAwarePluginAssignmentTrait::t()
AddBlockForm::submitLabel in core/modules/layout_builder/src/Form/AddBlockForm.php
Returns the label for the submit button.
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.
OptionalContextCondition::summary in core/modules/system/tests/modules/condition_test/src/Plugin/Condition/OptionalContextCondition.php
Provides a human readable summary of the condition's configuration.
UpdateBlockForm::submitLabel in core/modules/layout_builder/src/Form/UpdateBlockForm.php
Returns the label for the submit button.

File

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

Class

ContextAwarePluginAssignmentTrait
Handles context assignments for context-aware plugins.

Namespace

Drupal\Core\Plugin

Code

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