You are here

public static function EntityViewEventSubscriber::getSubscribedEvents in Better Statistics 8

File

src/EventSubscriber/EntityViewEventSubscriber.php, line 59

Class

EntityViewEventSubscriber
Class EntityViewEventSubscriber.

Namespace

Drupal\better_statistics\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Priority is set to 1 to avoid this listener from being stopped by other
  // listeners.
  // @see ContainerAwareEventDispatcher::dispatch()
  $events[KernelEvents::VIEW][] = [
    'onEventView',
    1,
  ];
  return $events;
}