public function ScheduleStorage::userRevisionIds in Business Rules 8
Same name and namespace in other branches
- 2.x src/ScheduleStorage.php \Drupal\business_rules\ScheduleStorage::userRevisionIds()
Gets a list of revision IDs having a given user as Schedule author.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user entity.
Return value
int[] Schedule revision IDs (in ascending order).
Overrides ScheduleStorageInterface::userRevisionIds
File
- src/
ScheduleStorage.php, line 33
Class
- ScheduleStorage
- Defines the storage handler class for Schedule entities.
Namespace
Drupal\business_rulesCode
public function userRevisionIds(AccountInterface $account) {
return $this->database
->query('SELECT vid FROM {br_schedule_field_revision} WHERE uid = :uid ORDER BY vid', [
':uid' => $account
->id(),
])
->fetchCol();
}