You are here

public function BehaviorInvokerInterface::getBehaviorPlugin in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 src/BehaviorInvokerInterface.php \Drupal\rabbit_hole\BehaviorInvokerInterface::getBehaviorPlugin()

Get the behavior plugin for the given entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to apply rabbit hole behavior on.

Return value

\Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginBase|null Rabbit Hole action plugin or NULL.

1 method overrides BehaviorInvokerInterface::getBehaviorPlugin()
BehaviorInvoker::getBehaviorPlugin in src/BehaviorInvoker.php
Get the behavior plugin for the given entity.

File

src/BehaviorInvokerInterface.php, line 34

Class

BehaviorInvokerInterface
Defines an interface for behavior invoker service.

Namespace

Drupal\rabbit_hole

Code

public function getBehaviorPlugin(ContentEntityInterface $entity);