public function DataPolicyConsentManager::getRevisionsByEntityIds in Data Policy 8
Get the list of revisions for specific entities.
Parameters
array $entity_ids: The list of entity ids.
Return value
array The list of revisions.
Overrides DataPolicyConsentManagerInterface::getRevisionsByEntityIds
2 calls to DataPolicyConsentManager::getRevisionsByEntityIds()
- DataPolicyConsentManager::addCheckbox in src/
DataPolicyConsentManager.php - Add checkbox to form which allow user give consent on data policy.
- DataPolicyConsentManager::saveConsent in src/
DataPolicyConsentManager.php - Save user consent.
File
- src/
DataPolicyConsentManager.php, line 409
Class
- DataPolicyConsentManager
- Defines the Data Policy Consent Manager service.
Namespace
Drupal\data_policyCode
public function getRevisionsByEntityIds(array $entity_ids) : array {
return $this->entityTypeManager
->getStorage('data_policy')
->loadMultiple($entity_ids);
}