You are here

public static function ForcePasswordChangeEventSubscriber::getSubscribedEvents in Force Password Change 8

Same name and namespace in other branches
  1. 2.0.x src/EventSubscriber/ForcePasswordChangeEventSubscriber.php \Drupal\force_password_change\EventSubscriber\ForcePasswordChangeEventSubscriber::getSubscribedEvents()

*

File

src/EventSubscriber/ForcePasswordChangeEventSubscriber.php, line 71

Class

ForcePasswordChangeEventSubscriber

Namespace

Drupal\force_password_change\EventSubscriber

Code

public static function getSubscribedEvents() {

  // On page load, we need to check for whether the user should be redirected
  // to the change password page
  $events[KernelEvents::REQUEST][] = [
    'checkForPasswordForce',
  ];
  return $events;
}