You are here

public static function UnpublishedNodesRedirectSubscriber::getSubscribedEvents in Unpublished Nodes Redirect 8

File

src/EventSubscriber/UnpublishedNodesRedirectSubscriber.php, line 19

Class

UnpublishedNodesRedirectSubscriber

Namespace

Drupal\unpublished_nodes_redirect\EventSubscriber

Code

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