You are here

public static function SectionComponentRenderArray::getSubscribedEvents in Core Context 8

File

src/EventSubscriber/SectionComponentRenderArray.php, line 52

Class

SectionComponentRenderArray
Reacts to a render array being generated for a layout section component.

Namespace

Drupal\core_context\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    // This needs to run before Layout Builder's event subscriber, so its
    // priority needs to be higher.
    LayoutBuilderEvents::SECTION_COMPONENT_BUILD_RENDER_ARRAY => [
      'setComponentContexts',
      150,
    ],
  ];
}