public static function BlockPageDisplayVariantSubscriber::getSubscribedEvents in Context 8.4
Same name and namespace in other branches
- 8 src/EventSubscriber/BlockPageDisplayVariantSubscriber.php \Drupal\context\EventSubscriber\BlockPageDisplayVariantSubscriber::getSubscribedEvents()
- 8.0 src/EventSubscriber/BlockPageDisplayVariantSubscriber.php \Drupal\context\EventSubscriber\BlockPageDisplayVariantSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ BlockPageDisplayVariantSubscriber.php, line 55
Class
- BlockPageDisplayVariantSubscriber
- Selects the block page display variant.
Namespace
Drupal\context\EventSubscriberCode
public static function getSubscribedEvents() {
$events[RenderEvents::SELECT_PAGE_DISPLAY_VARIANT][] = [
'onSelectPageDisplayVariant',
];
return $events;
}