public function ContextAwarePluginTrait::getContextValue in Drupal 10
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php \Drupal\Core\Plugin\ContextAwarePluginTrait::getContextValue()
11 calls to ContextAwarePluginTrait::getContextValue()
- ConditionTestDualUser::evaluate in core/
modules/ system/ tests/ modules/ condition_test/ src/ Plugin/ Condition/ ConditionTestDualUser.php - Evaluates the condition and returns TRUE or FALSE accordingly.
- IHaveRuntimeContexts::build in core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ src/ Plugin/ Block/ IHaveRuntimeContexts.php - Builds and returns the renderable array for this block plugin.
- MockComplexContextBlock::getTitle in core/
modules/ system/ tests/ modules/ plugin_test/ src/ Plugin/ plugin_test/ mock_block/ MockComplexContextBlock.php - MockUserNameBlock::getTitle in core/
modules/ system/ tests/ modules/ plugin_test/ src/ Plugin/ plugin_test/ mock_block/ MockUserNameBlock.php - NodeContextTestBlock::build in core/
modules/ node/ tests/ modules/ node_block_test/ src/ Plugin/ Block/ NodeContextTestBlock.php - Builds and returns the renderable array for this block plugin.
File
- core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginTrait.php, line 81
Class
- ContextAwarePluginTrait
- Provides a trait to add context-aware functionality to plugins.
Namespace
Drupal\Core\PluginCode
public function getContextValue($name) {
return $this
->getContext($name)
->getContextValue();
}