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