You are here

public static function PasswordPolicyEventSubscriber::getSubscribedEvents in Password Policy 8.3

File

src/EventSubscriber/PasswordPolicyEventSubscriber.php, line 122

Class

PasswordPolicyEventSubscriber
Enforces password reset functionality.

Namespace

Drupal\password_policy\EventSubscriber

Code

public static function getSubscribedEvents() {

  // TODO - Evaluate if there is a better place to add this check.
  $events[KernelEvents::REQUEST][] = [
    'checkForUserPasswordExpiration',
  ];
  return $events;
}