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