You are here

public static function BlockPageDisplayVariantSubscriber::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php \Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber::getSubscribedEvents()

File

core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php, line 29

Class

BlockPageDisplayVariantSubscriber
Selects the block page display variant.

Namespace

Drupal\block\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[RenderEvents::SELECT_PAGE_DISPLAY_VARIANT][] = [
    'onSelectPageDisplayVariant',
  ];
  return $events;
}