public function RightToBeForgottenEntityTraversal::traverseEntity in General Data Protection Regulation 8.2
Same name and namespace in other branches
- 8 modules/gdpr_tasks/src/Traversal/RightToBeForgottenEntityTraversal.php \Drupal\gdpr_tasks\Traversal\RightToBeForgottenEntityTraversal::traverseEntity()
- 3.0.x 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 72
Class
- RightToBeForgottenEntityTraversal
- Entity traversal used for Right to be Forgotten requests.
Namespace
Drupal\gdpr_tasks\TraversalCode
public function traverseEntity(EntityInterface $entity) {
$this->results = [
'errors' => [],
'successes' => [],
'failures' => [],
'log' => [],
'to_delete' => [],
];
$this
->doTraversalRecursive($entity);
}