public function IssueStorage::userRevisionIds in Drupal PM (Project Management) 4.x
Gets a list of revision IDs having a given user as Issue author.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user entity.
Return value
int[] Issue revision IDs (in ascending order).
Overrides IssueStorageInterface::userRevisionIds
File
- modules/
pm_issue/ src/ IssueStorage.php, line 32
Class
- IssueStorage
- Defines the storage handler class for Issue entities.
Namespace
Drupal\pm_issueCode
public function userRevisionIds(AccountInterface $account) {
return $this->database
->query('SELECT vid FROM {pm_issue_field_revision} WHERE uid = :uid ORDER BY vid', [
':uid' => $account
->id(),
])
->fetchCol();
}