public static function LayoutBuilderIdsRenderSubscriber::getSubscribedEvents in Layout builder ids 2.0.x
Same name and namespace in other branches
- 8 src/EventSubscriber/LayoutBuilderIdsRenderSubscriber.php \Drupal\layout_builder_ids\EventSubscriber\LayoutBuilderIdsRenderSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ LayoutBuilderIdsRenderSubscriber.php, line 17
Class
- LayoutBuilderIdsRenderSubscriber
- Render the layout with block ids.
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;
}