You are here

public function DataPolicyConsentManager::isRequiredEntity in Data Policy 8

1 call to DataPolicyConsentManager::isRequiredEntity()
DataPolicyConsentManager::saveConsent in src/DataPolicyConsentManager.php
Save user consent.

File

src/DataPolicyConsentManager.php, line 402

Class

DataPolicyConsentManager
Defines the Data Policy Consent Manager service.

Namespace

Drupal\data_policy

Code

public function isRequiredEntity($data_policy_id) : bool {
  return $this
    ->isRequiredEntityInEntities([
    $data_policy_id,
  ]);
}