public static function LayoutBuilderIdsRenderSubscriber::getSubscribedEvents in Layout builder ids 8
Same name and namespace in other branches
- 2.0.x src/EventSubscriber/LayoutBuilderIdsRenderSubscriber.php \Drupal\layout_builder_ids\EventSubscriber\LayoutBuilderIdsRenderSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ LayoutBuilderIdsRenderSubscriber.php, line 18
Class
- LayoutBuilderIdsRenderSubscriber
- Class BlockComponentRenderArraySubscriber.
Namespace
Drupal\layout_builder_ids\EventSubscriberCode
public static function getSubscribedEvents() {
// Layout Builder also subscribes to this event to build the initial render
// array. We use a higher weight so that we execute after it.
$events[LayoutBuilderEvents::SECTION_COMPONENT_BUILD_RENDER_ARRAY] = [
'onBuildRender',
50,
];
return $events;
}