You are here

static function BlockPageDisplayVariantSubscriber::getSubscribedEvents in Context 8

Same name and namespace in other branches
  1. 8.4 src/EventSubscriber/BlockPageDisplayVariantSubscriber.php \Drupal\context\EventSubscriber\BlockPageDisplayVariantSubscriber::getSubscribedEvents()
  2. 8.0 src/EventSubscriber/BlockPageDisplayVariantSubscriber.php \Drupal\context\EventSubscriber\BlockPageDisplayVariantSubscriber::getSubscribedEvents()

File

src/EventSubscriber/BlockPageDisplayVariantSubscriber.php, line 55
Contains \Drupal\context\EventSubscriber\BlockPageDisplayVariantSubscriber.

Class

BlockPageDisplayVariantSubscriber
Selects the block page display variant.

Namespace

Drupal\context\EventSubscriber

Code

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