You are here

public function FlaggingCollectionStorage::revisionIds in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/FlaggingCollectionStorage.php \Drupal\flag_lists\FlaggingCollectionStorage::revisionIds()

Gets a list of Flagging collection revision IDs for a collection.

Parameters

\Drupal\flag_lists\Entity\FlaggingCollectionInterface $entity: The Flagging collection entity.

Return value

int[] Flagging collection revision IDs (in ascending order).

Overrides FlaggingCollectionStorageInterface::revisionIds

File

src/FlaggingCollectionStorage.php, line 23

Class

FlaggingCollectionStorage
Defines the storage handler class for Flagging collection entities.

Namespace

Drupal\flag_lists

Code

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