public function RightToBeForgottenEntityTraversal::__construct in General Data Protection Regulation 8
Same name and namespace in other branches
- 8.2 modules/gdpr_tasks/src/Traversal/RightToBeForgottenEntityTraversal.php \Drupal\gdpr_tasks\Traversal\RightToBeForgottenEntityTraversal::__construct()
- 3.0.x modules/gdpr_tasks/src/Traversal/RightToBeForgottenEntityTraversal.php \Drupal\gdpr_tasks\Traversal\RightToBeForgottenEntityTraversal::__construct()
EntityTraversal constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager.
\Drupal\Core\Entity\EntityInterface $base_entity: The starting entity for the traversal.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
Overrides EntityTraversal::__construct
File
- modules/
gdpr_tasks/ src/ Traversal/ RightToBeForgottenEntityTraversal.php, line 56
Class
- RightToBeForgottenEntityTraversal
- Entity traversal used for Right to be Forgotten requests.
Namespace
Drupal\gdpr_tasks\TraversalCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityFieldManagerInterface $entityFieldManager, $base_entity, ModuleHandlerInterface $module_handler, AnonymizerFactory $anonymizer_factory) {
parent::__construct($entityTypeManager, $entityFieldManager, $base_entity);
$this->moduleHandler = $module_handler;
$this->anonymizerFactory = $anonymizer_factory;
}