static function ExplorerPageDisplayVariantSubscriber::getSubscribedEvents in GraphQL 8.2
Same name and namespace in other branches
- 8 src/EventSubscriber/ExplorerPageDisplayVariantSubscriber.php \Drupal\graphql\EventSubscriber\ExplorerPageDisplayVariantSubscriber::getSubscribedEvents()
- 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\EventSubscriberCode
static function getSubscribedEvents() {
$events[RenderEvents::SELECT_PAGE_DISPLAY_VARIANT][] = [
'onSelectPageDisplayVariant',
];
return $events;
}