You are here

public function BehaviorInvokerInterface::getEntity in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x src/BehaviorInvokerInterface.php \Drupal\rabbit_hole\BehaviorInvokerInterface::getEntity()

Retrieves entity to apply rabbit hole behavior from event object.

Parameters

\Symfony\Component\HttpKernel\Event\KernelEvent $event: The kernel request event.

Return value

\Drupal\Core\Entity\ContentEntityInterface|false Entity object if the Rabbit Hole action is applicable or FALSE otherwise.

1 method overrides BehaviorInvokerInterface::getEntity()
BehaviorInvoker::getEntity in src/BehaviorInvoker.php
Retrieves entity to apply rabbit hole behavior from event object.

File

src/BehaviorInvokerInterface.php, line 23

Class

BehaviorInvokerInterface
Defines an interface for behavior invoker service.

Namespace

Drupal\rabbit_hole

Code

public function getEntity(KernelEvent $event);