public static function PrepareLayout::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 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\EventSubscriberCode
public static function getSubscribedEvents() {
$events[LayoutBuilderEvents::PREPARE_LAYOUT][] = [
'onPrepareLayout',
10,
];
return $events;
}