You are here

public function EventStorage::revisionIds in Event 8

Gets a list of Event revision IDs for a specific Event.

Parameters

\Drupal\event\Entity\EventInterface $entity: The Event entity.

Return value

int[] Event revision IDs (in ascending order).

Overrides EventStorageInterface::revisionIds

File

src/EventStorage.php, line 23

Class

EventStorage
Defines the storage handler class for Event entities.

Namespace

Drupal\event

Code

public function revisionIds(EventInterface $entity) {
  return $this->database
    ->query('SELECT vid FROM {event_revision} WHERE id=:id ORDER BY vid', [
    ':id' => $entity
      ->id(),
  ])
    ->fetchCol();
}