You are here

protected function ContextAwarePluginAssignmentTrait::contextHandler in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait::contextHandler()

Wraps the context handler.

Return value

\Drupal\Core\Plugin\Context\ContextHandlerInterface

File

core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php, line 27
Contains \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait.

Class

ContextAwarePluginAssignmentTrait
Handles context assignments for context-aware plugins.

Namespace

Drupal\Core\Plugin

Code

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