You are here

public static function KernelTerminateSubscriber::getSubscribedEvents in Visitors 8.2

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

File

src/EventSubscriber/KernelTerminateSubscriber.php, line 95
Contains Drupal\visitors\EventSubscriber\KernelTerminateSubscriber.

Class

KernelTerminateSubscriber
Store visitors data when a request terminates.

Namespace

Drupal\visitors\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events["kernel.terminate"] = [
    'onTerminate',
  ];
  return $events;
}