EntityTraversalInterface.php in General Data Protection Regulation 8
Same filename and directory in other branches
Namespace
Drupal\gdpr_fieldsFile
modules/gdpr_fields/src/EntityTraversalInterface.phpView source
<?php
namespace Drupal\gdpr_fields;
/**
* Defines a common interface for entity traversal.
*/
interface EntityTraversalInterface extends EntityTraversalContainerInjectionInterface {
/**
* Traverses the entity relationship tree if not done before.
*
* @return bool
* Whether or not the traversal was successful.
*
* @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
* @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
*/
public function traverse();
/**
* Get the traversal results.
*
* @return array|null
* Results collected by the traversal.
* By default this will be a nested array. The first dimension is
* keyed by entity type and contains an array keyed by entity ID.
* The values will be the entity instances.
*/
public function getResults();
}
Interfaces
Name | Description |
---|---|
EntityTraversalInterface | Defines a common interface for entity traversal. |