8.5.x ContextAwarePluginAssignmentTrait.php ContextAwarePluginAssignmentTrait::t($string, array $args = [], array $options = [])
8.0.x ContextAwarePluginAssignmentTrait.php ContextAwarePluginAssignmentTrait::t($string, array $args = array(), array $options = array())
8.1.x ContextAwarePluginAssignmentTrait.php ContextAwarePluginAssignmentTrait::t($string, array $args = array(), array $options = array())
8.2.x ContextAwarePluginAssignmentTrait.php ContextAwarePluginAssignmentTrait::t($string, array $args = array(), array $options = array())
8.3.x ContextAwarePluginAssignmentTrait.php ContextAwarePluginAssignmentTrait::t($string, array $args = [], array $options = [])
8.4.x ContextAwarePluginAssignmentTrait.php ContextAwarePluginAssignmentTrait::t($string, array $args = [], array $options = [])
8.6.x ContextAwarePluginAssignmentTrait.php ContextAwarePluginAssignmentTrait::t($string, array $args = [], array $options = [])

Ensures the t() method is available.

Overrides StringTranslationTrait::t

See also

\Drupal\Core\StringTranslation\StringTranslationTrait

35 calls to ContextAwarePluginAssignmentTrait::t()
AggregatorFeedBlock::blockForm in core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
Returns the configuration form elements specific to this block plugin.
AggregatorFeedBlock::build in core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
Builds and returns the renderable array for this block plugin.
AjaxFormBlock::buildForm in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
Form constructor.
AjaxFormBlock::updateOptions in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
Updates the options of a select list.
BlockBase::buildConfigurationForm in core/lib/Drupal/Core/Block/BlockBase.php
Creates a generic configuration form for all block types. Individual block plugins can add elements to this form by overriding BlockBase::blockForm(). Most block plugins should not override this method unless they need to alter the generic form elements.

... 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

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