You are here

abstract protected function EntityTraversal::processEntity in General Data Protection Regulation 8

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

Handles the entity.

By default this just returns the entity instance, but derived classes should override this method if they need to collect additional data on the instance.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity to handle.

\Drupal\gdpr_fields\Entity\GdprFieldConfigEntity $config: GDPR config for this entity.

string $row_id: Row identifier used in SARs.

\Drupal\gdpr_fields\Entity\GdprField|null $parent_config: Parent's config.

1 call to EntityTraversal::processEntity()
EntityTraversal::doTraversalRecursive in modules/gdpr_fields/src/EntityTraversal.php
Traverses the entity relationship tree.
4 methods override EntityTraversal::processEntity()
RightToAccessDisplayTraversal::processEntity in modules/gdpr_tasks/src/Traversal/RightToAccessDisplayTraversal.php
RightToAccessEntityTraversal::processEntity in modules/gdpr_tasks/src/Traversal/RightToAccessEntityTraversal.php
Handles the entity.
RightToBeForgottenDisplayTraversal::processEntity in modules/gdpr_tasks/src/Traversal/RightToBeForgottenDisplayTraversal.php
RightToBeForgottenEntityTraversal::processEntity in modules/gdpr_tasks/src/Traversal/RightToBeForgottenEntityTraversal.php

File

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

Class

EntityTraversal
Base class for traversing entities.

Namespace

Drupal\gdpr_fields

Code

protected abstract function processEntity(FieldableEntityInterface $entity, GdprFieldConfigEntity $config, $row_id, GdprField $parent_config = NULL);