You are here

protected function EntityTraversal::traverseEntity in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_fields/src/EntityTraversal.php \Drupal\gdpr_fields\EntityTraversal::traverseEntity()
  2. 8 modules/gdpr_fields/src/EntityTraversal.php \Drupal\gdpr_fields\EntityTraversal::traverseEntity()

Traverses the entity relationship tree.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 call to EntityTraversal::traverseEntity()
EntityTraversal::traverse in modules/gdpr_fields/src/EntityTraversal.php
Traverses the entity relationship tree if not done before.
1 method overrides EntityTraversal::traverseEntity()
RightToBeForgottenEntityTraversal::traverseEntity in modules/gdpr_tasks/src/Traversal/RightToBeForgottenEntityTraversal.php
Traverses the entity relationship tree.

File

modules/gdpr_fields/src/EntityTraversal.php, line 131

Class

EntityTraversal
Base class for traversing entities.

Namespace

Drupal\gdpr_fields

Code

protected function traverseEntity(EntityInterface $entity) {
  $this
    ->doTraversalRecursive($entity);
}