You are here

public function ScheduleStorage::revisionIds in Business Rules 8

Same name and namespace in other branches
  1. 2.x 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_rules

Code

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();
}