You are here

protected function SectionComponent::eventDispatcher in Drupal 10

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

Wraps the event dispatcher.

Return value

\Symfony\Contracts\EventDispatcher\EventDispatcherInterface The event dispatcher.

File

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

Class

SectionComponent
Provides a value object for a section component.

Namespace

Drupal\layout_builder

Code

protected function eventDispatcher() {
  return \Drupal::service('event_dispatcher');
}