You are here

protected function ContextAwarePluginManagerTrait::contextHandler in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

File

core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerTrait.php, line 20
Contains \Drupal\Core\Plugin\Context\ContextAwarePluginManagerTrait.

Class

ContextAwarePluginManagerTrait
Provides a trait for plugin managers that support context-aware plugins.

Namespace

Drupal\Core\Plugin\Context

Code

protected function contextHandler() {
  return \Drupal::service('context.handler');
}