function Section::contextHandler

Same name in other branches
  1. 9 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::contextHandler()
  2. 11.x core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::contextHandler()

Wraps the context handler.

Return value

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

File

core/modules/layout_builder/src/Section.php, line 450

Class

Section
Provides a domain object for layout sections.

Namespace

Drupal\layout_builder

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.