You are here

public static function PrepareLayout::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 9 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() : array {
  $events[LayoutBuilderEvents::PREPARE_LAYOUT][] = [
    'onPrepareLayout',
    10,
  ];
  return $events;
}