public function PhotosImageStorage::revisionIds in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/PhotosImageStorage.php \Drupal\photos\PhotosImageStorage::revisionIds()
Gets a list of image revision IDs for a specific image.
Parameters
\Drupal\photos\PhotosImageInterface $image: The image entity.
Return value
int[] Image revision IDs (in ascending order).
Overrides PhotosImageStorageInterface::revisionIds
File
- src/
PhotosImageStorage.php, line 20
Class
- PhotosImageStorage
- Defines the storage handler class for photos images.
Namespace
Drupal\photosCode
public function revisionIds(PhotosImageInterface $image) {
return $this->database
->query('SELECT vid FROM {' . $this
->getRevisionTable() . '} WHERE fid = :fid ORDER BY vid', [
':fid' => $image
->id(),
])
->fetchCol();
}