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