You are here

public static function ViewsPerformanceAnalyzerSubscriber::getSubscribedEvents in Entity Pager 8

Same name and namespace in other branches
  1. 2.0.x src/EventSubscriber/ViewsPerformanceAnalyzerSubscriber.php \Drupal\entity_pager\EventSubscriber\ViewsPerformanceAnalyzerSubscriber::getSubscribedEvents()

File

src/EventSubscriber/ViewsPerformanceAnalyzerSubscriber.php, line 17

Class

ViewsPerformanceAnalyzerSubscriber
An event subscriber to provide performance feedback on the Entity Pager view.

Namespace

Drupal\entity_pager\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [];
  $events[EntityPagerEvents::ENTITY_PAGER_ANALYZE][] = [
    'onEntityPagerAnalyze',
  ];
  return $events;
}