You are here

protected function ContextAwarePluginBase::contextHandler in Drupal 8

Wraps the context handler.

Return value

\Drupal\Core\Plugin\Context\ContextHandlerInterface

File

core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php, line 123

Class

ContextAwarePluginBase
Base class for plugins that are context aware.

Namespace

Drupal\Core\Plugin

Code

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