You are here

public static function GeolocateUserSubscriber::getSubscribedEvents in Smart IP 8.3

Same name and namespace in other branches
  1. 8.4 src/EventSubscriber/GeolocateUserSubscriber.php \Drupal\smart_ip\EventSubscriber\GeolocateUserSubscriber::getSubscribedEvents()
  2. 8.2 src/EventSubscriber/GeolocateUserSubscriber.php \Drupal\smart_ip\EventSubscriber\GeolocateUserSubscriber::getSubscribedEvents()

File

src/EventSubscriber/GeolocateUserSubscriber.php, line 41
Contains \Drupal\smart_ip\EventSubscriber\GeolocateUserSubscriber.

Class

GeolocateUserSubscriber
Allows Smart IP to act on HTTP request event.

Namespace

Drupal\smart_ip\EventSubscriber

Code

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