You are here

public static function ProtectedPagesSubscriber::getSubscribedEvents in Protected Pages 8

File

src/EventSubscriber/ProtectedPagesSubscriber.php, line 133

Class

ProtectedPagesSubscriber
Redirects user to protected page login screen.

Namespace

Drupal\protected_pages\EventSubscriber

Code

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