You are here

public function DataPolicyConsentManager::__construct in Data Policy 8

Constructs a new GDPR Consent Manager service.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

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

\Drupal\Core\Database\Connection $database: The database connection.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

File

src/DataPolicyConsentManager.php, line 79

Class

DataPolicyConsentManager
Defines the Data Policy Consent Manager service.

Namespace

Drupal\data_policy

Code

public function __construct(ConfigFactoryInterface $config_factory, AccountProxyInterface $current_user, EntityTypeManagerInterface $entity_type_manager, Connection $database, EntityRepositoryInterface $entity_repository) {
  $this->configFactory = $config_factory;
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->database = $database;
  $this->entityRepository = $entity_repository;
}