public static function NodeViewSubscriber::getSubscribedEvents in Open Social 8.9
Same name and namespace in other branches
- 8.4 modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php \Drupal\social_node_statistics\EventSubscriber\NodeViewSubscriber::getSubscribedEvents()
- 8.5 modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php \Drupal\social_node_statistics\EventSubscriber\NodeViewSubscriber::getSubscribedEvents()
- 8.6 modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php \Drupal\social_node_statistics\EventSubscriber\NodeViewSubscriber::getSubscribedEvents()
- 8.7 modules/custom/social_node_statistics/src/EventSubscriber/NodeViewSubscriber.php \Drupal\social_node_statistics\EventSubscriber\NodeViewSubscriber::getSubscribedEvents()
- 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\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::TERMINATE][] = [
'trackNodeView',
];
return $events;
}