Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContextAwarePluginManagerTrait.php

function ContextAwarePluginManagerTrait::contextHandler

Wraps the context handler.

Return value

\Drupal\Core\Plugin\Context\ContextHandlerInterface

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\Context

Code

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