You are here

public static function LayoutBuilderComponentRenderArray::getSubscribedEvents in Layout Builder Component Attributes 1.2.x

Same name and namespace in other branches
  1. 1.0.x src/EventSubscriber/LayoutBuilderComponentRenderArray.php \Drupal\layout_builder_component_attributes\EventSubscriber\LayoutBuilderComponentRenderArray::getSubscribedEvents()
  2. 1.1.x src/EventSubscriber/LayoutBuilderComponentRenderArray.php \Drupal\layout_builder_component_attributes\EventSubscriber\LayoutBuilderComponentRenderArray::getSubscribedEvents()

File

src/EventSubscriber/LayoutBuilderComponentRenderArray.php, line 17

Class

LayoutBuilderComponentRenderArray
Event subscriber to add classes when components are rendered.

Namespace

Drupal\layout_builder_component_attributes\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[LayoutBuilderEvents::SECTION_COMPONENT_BUILD_RENDER_ARRAY] = [
    'onBuildRender',
  ];
  return $events;
}