You are here

public function RightToBeForgottenEntityTraversal::traverseEntity in General Data Protection Regulation 3.0.x

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

Traverses the entity relationship tree.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides EntityTraversal::traverseEntity

File

modules/gdpr_tasks/src/Traversal/RightToBeForgottenEntityTraversal.php, line 71

Class

RightToBeForgottenEntityTraversal
Entity traversal used for Right to be Forgotten requests.

Namespace

Drupal\gdpr_tasks\Traversal

Code

public function traverseEntity(EntityInterface $entity) {
  $this->results = [
    'errors' => [],
    'successes' => [],
    'failures' => [],
    'log' => [],
    'to_delete' => [],
  ];
  $this
    ->doTraversalRecursive($entity);
}