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