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