You are here

static function ExplorerPageDisplayVariantSubscriber::getSubscribedEvents in GraphQL 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/ExplorerPageDisplayVariantSubscriber.php \Drupal\graphql\EventSubscriber\ExplorerPageDisplayVariantSubscriber::getSubscribedEvents()
  2. 8.3 src/EventSubscriber/ExplorerPageDisplayVariantSubscriber.php \Drupal\graphql\EventSubscriber\ExplorerPageDisplayVariantSubscriber::getSubscribedEvents()

File

src/EventSubscriber/ExplorerPageDisplayVariantSubscriber.php, line 28

Class

ExplorerPageDisplayVariantSubscriber
Disables any display variant on the explorer page.

Namespace

Drupal\graphql\EventSubscriber

Code

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