function SectionComponent::contextHandler
Same name in other branches
- 9 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::contextHandler()
- 8.9.x core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::contextHandler()
- 10 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_builderCode
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.