public function DataPolicyStorage::revisionIds in Data Policy 8
Gets a list of Data policy revision IDs for a specific Data policy.
Parameters
\Drupal\data_policy\Entity\DataPolicyInterface $entity: The Data policy entity.
Return value
int[] Data policy revision IDs (in ascending order).
Overrides DataPolicyStorageInterface::revisionIds
File
- src/
DataPolicyStorage.php, line 23
Class
- DataPolicyStorage
- Defines the storage handler class for Data policy entities.
Namespace
Drupal\data_policyCode
public function revisionIds(DataPolicyInterface $entity) {
return $this->database
->query('SELECT vid FROM {data_policy_revision} WHERE id=:id ORDER BY vid', [
':id' => $entity
->id(),
])
->fetchCol();
}