protected function ContextAwarePluginManagerTrait::contextHandler in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerTrait.php \Drupal\Core\Plugin\Context\ContextAwarePluginManagerTrait::contextHandler()
- 9 core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerTrait.php \Drupal\Core\Plugin\Context\ContextAwarePluginManagerTrait::contextHandler()
Wraps the context handler.
Return value
\Drupal\Core\Plugin\Context\ContextHandlerInterface
1 call to ContextAwarePluginManagerTrait::contextHandler()
- ContextAwarePluginManagerTrait::getDefinitionsForContexts in core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextAwarePluginManagerTrait.php - See \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface::getDefinitionsForContexts().
1 method overrides ContextAwarePluginManagerTrait::contextHandler()
- TestFilteredPluginManager::contextHandler in core/
tests/ Drupal/ Tests/ Core/ Plugin/ FilteredPluginManagerTraitTest.php - Wraps the context handler.
File
- core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextAwarePluginManagerTrait.php, line 15
Class
- ContextAwarePluginManagerTrait
- Provides a trait for plugin managers that support context-aware plugins.
Namespace
Drupal\Core\Plugin\ContextCode
protected function contextHandler() {
return \Drupal::service('context.handler');
}