You are here

protected function SectionComponent::contextHandler in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::contextHandler()

Wraps the context handler.

Return value

\Drupal\Core\Plugin\Context\ContextHandlerInterface The context handler.

File

core/modules/layout_builder/src/SectionComponent.php, line 268

Class

SectionComponent
Provides a value object for a section component.

Namespace

Drupal\layout_builder

Code

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