You are here

public static function PrepareLayout::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/layout_builder/src/EventSubscriber/PrepareLayout.php \Drupal\layout_builder\EventSubscriber\PrepareLayout::getSubscribedEvents()

File

core/modules/layout_builder/src/EventSubscriber/PrepareLayout.php, line 54

Class

PrepareLayout
An event subscriber to prepare section storage via the \Drupal\layout_builder\Event\PrepareLayoutEvent.

Namespace

Drupal\layout_builder\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[LayoutBuilderEvents::PREPARE_LAYOUT][] = [
    'onPrepareLayout',
    10,
  ];
  return $events;
}