You are here

public function BehaviorInvokerInterface::processEntity in Rabbit Hole 8

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

Invoke a rabbit hole behavior based on an entity's configuration.

This assumes the entity is configured for use with Rabbit Hole - if you pass an entity to this method and it does not have a rabbit hole plugin it will use the defaults!

Parameters

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

\Symfony\Component\HttpFoundation\Response $current_response: The current response, to be passed along to and potentially altered by any called rabbit hole plugin.

Return value

\Symfony\Component\HttpFoundation\Response|null A response or NULL if the response is unchanged.

Throws

\Drupal\Component\Plugin\Exception\PluginException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 method overrides BehaviorInvokerInterface::processEntity()
BehaviorInvoker::processEntity in src/BehaviorInvoker.php
Invoke a rabbit hole behavior based on an entity's configuration.

File

src/BehaviorInvokerInterface.php, line 55

Class

BehaviorInvokerInterface
Defines an interface for behavior invoker service.

Namespace

Drupal\rabbit_hole

Code

public function processEntity(ContentEntityInterface $entity, Response $current_response = NULL);