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