You are here

static function GeolocateUserSubscriber::getSubscribedEvents in Smart IP 8.2

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

File

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

Class

GeolocateUserSubscriber
Allows Smart IP to act on HTTP request event.

Namespace

Drupal\smart_ip\EventSubscriber

Code

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