public function BehaviorInvokerInterface::getEntity in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 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_holeCode
public function getEntity(KernelEvent $event);