You are here

public function RabbitHoleSubscriber::onRequest in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x 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);
}