You are here

public static function ExplorerPageDisplayVariantSubscriber::getSubscribedEvents in GraphQL 8.3

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

File

src/EventSubscriber/ExplorerPageDisplayVariantSubscriber.php, line 29

Class

ExplorerPageDisplayVariantSubscriber
Disables any display variant on the explorer page.

Namespace

Drupal\graphql\EventSubscriber

Code

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