You are here

public function RabbitHoleSubscriber::onRequest in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 src/EventSubscriber/RabbitHoleSubscriber.php \Drupal\rabbit_hole\EventSubscriber\RabbitHoleSubscriber::onRequest()

A method to be called whenever a kernel.request event is dispatched.

It invokes a rabbit hole behavior on an entity in the request if applicable.

Parameters

\Symfony\Component\HttpKernel\Event\KernelEvent $event: The event triggered by the request.

File

src/EventSubscriber/RabbitHoleSubscriber.php, line 50

Class

RabbitHoleSubscriber
Class EventSubscriber.

Namespace

Drupal\rabbit_hole\EventSubscriber

Code

public function onRequest(KernelEvent $event) {
  $this
    ->processEvent($event);
}