You are here

public function GDPRCollector::__construct in General Data Protection Regulation 8

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

Constructs a GDPRCollector object.

Parameters

\Drupal\Core\Entity\EntityTypeManager $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info: Bundle info.

File

modules/gdpr_fields/src/GDPRCollector.php, line 49

Class

GDPRCollector
Defines a helper class for stuff related to views data.

Namespace

Drupal\gdpr_fields

Code

public function __construct(EntityTypeManager $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $bundle_info) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->bundleInfo = $bundle_info;
}