public function DataPolicyStorage::userRevisionIds in Data Policy 8
Gets a list of revision IDs having a given user as Data policy author.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user entity.
Return value
int[] Data policy revision IDs (in ascending order).
Overrides DataPolicyStorageInterface::userRevisionIds
File
- src/
DataPolicyStorage.php, line 33
Class
- DataPolicyStorage
- Defines the storage handler class for Data policy entities.
Namespace
Drupal\data_policyCode
public function userRevisionIds(AccountInterface $account) {
return $this->database
->query('SELECT vid FROM {data_policy_field_revision} WHERE uid = :uid ORDER BY vid', [
':uid' => $account
->id(),
])
->fetchCol();
}