You are here

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

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

An entity's rabbit hole configuration, or the default if it does not exist.

Return an entity's rabbit hole configuration or, failing that, the default configuration for the bundle (which itself will call the base default configuration if necessary).

Parameters

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

Return value

array An array of values from the entity's fields matching the base properties added by rabbit hole.

1 method overrides BehaviorInvokerInterface::getRabbitHoleValuesForEntity()
BehaviorInvoker::getRabbitHoleValuesForEntity in src/BehaviorInvoker.php
An entity's rabbit hole configuration, or the default if it does not exist.

File

src/BehaviorInvokerInterface.php, line 79

Class

BehaviorInvokerInterface
Defines an interface for behavior invoker service.

Namespace

Drupal\rabbit_hole

Code

public function getRabbitHoleValuesForEntity(ContentEntityInterface $entity);