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

Wraps the context handler.

Return value

\Drupal\Core\Plugin\Context\ContextHandlerInterface

1 call to ContextAwarePluginAssignmentTrait::contextHandler()
ContextAwarePluginAssignmentTrait::addContextAssignmentElement in core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php
Builds a form element for assigning a context to a given slot.

File

core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php, line 22

Class

ContextAwarePluginAssignmentTrait
Handles context assignments for context-aware plugins.

Namespace

Drupal\Core\Plugin

Code

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