function PrepareLayout::getSubscribedEvents

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

File

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

Class

PrepareLayout
An event subscriber to prepare section storage.

Namespace

Drupal\layout_builder\EventSubscriber

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.