You are here

public static function NodeViewSubscriber::getSubscribedEvents in Open Social 8.9

Same name and namespace in other branches
  1. 8.4 modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php \Drupal\social_node_statistics\EventSubscriber\NodeViewSubscriber::getSubscribedEvents()
  2. 8.5 modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php \Drupal\social_node_statistics\EventSubscriber\NodeViewSubscriber::getSubscribedEvents()
  3. 8.6 modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php \Drupal\social_node_statistics\EventSubscriber\NodeViewSubscriber::getSubscribedEvents()
  4. 8.7 modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php \Drupal\social_node_statistics\EventSubscriber\NodeViewSubscriber::getSubscribedEvents()
  5. 8.8 modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php \Drupal\social_node_statistics\EventSubscriber\NodeViewSubscriber::getSubscribedEvents()

Get the request events.

Return value

mixed Returns request events.

File

modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php, line 75

Class

NodeViewSubscriber
Class NodeViewSubscriber.

Namespace

Drupal\social_node_statistics\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::TERMINATE][] = [
    'trackNodeView',
  ];
  return $events;
}