You are here

public static function BlockComponentRenderArraySubscriber::getSubscribedEvents in Layout Builder Styles 8

File

src/EventSubscriber/BlockComponentRenderArraySubscriber.php, line 46

Class

BlockComponentRenderArraySubscriber
Class BlockComponentRenderArraySubscriber.

Namespace

Drupal\layout_builder_styles\EventSubscriber

Code

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;
}