public function DataPolicyConsentManager::isDataPolicy in Data Policy 8
Check if data policy is created.
Return value
bool TRUE if data policy entity is created.
Overrides DataPolicyConsentManagerInterface::isDataPolicy
1 call to DataPolicyConsentManager::isDataPolicy()
- DataPolicyConsentManager::needConsent in src/
DataPolicyConsentManager.php - Check if user gave consent on a current version of data policy.
File
- src/
DataPolicyConsentManager.php, line 365
Class
- DataPolicyConsentManager
- Defines the Data Policy Consent Manager service.
Namespace
Drupal\data_policyCode
public function isDataPolicy() {
return !empty($this
->getEntityIdsFromConsentText());
}