public function RabbitHoleSubscriber::onResponse in Rabbit Hole 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/RabbitHoleSubscriber.php \Drupal\rabbit_hole\EventSubscriber\RabbitHoleSubscriber::onResponse()
A method to be called whenever a kernel.response event is dispatched.
Like the onRequest event, it invokes a rabbit hole behavior on an entity in the request if possible. Unlike the onRequest event, it also passes in a response.
Parameters
\Symfony\Component\HttpKernel\Event\KernelEvent $event: The event triggered by the response.
File
- src/
EventSubscriber/ RabbitHoleSubscriber.php, line 64
Class
- RabbitHoleSubscriber
- Class EventSubscriber.
Namespace
Drupal\rabbit_hole\EventSubscriberCode
public function onResponse(KernelEvent $event) {
$this
->processEvent($event);
}