public function PetStorage::revisionIds in Previewable email templates 8.3
Gets a list of Pet revision IDs for a specific Pet.
Parameters
\Drupal\pet\Entity\PetInterface $entity: The Pet entity.
Return value
int[] Pet revision IDs (in ascending order).
Overrides PetStorageInterface::revisionIds
File
- src/
PetStorage.php, line 23
Class
- PetStorage
- Defines the storage handler class for Pet entities.
Namespace
Drupal\petCode
public function revisionIds(PetInterface $entity) {
return $this->database
->query('SELECT vid FROM {pets_revision} WHERE id=:id ORDER BY vid', [
':id' => $entity
->id(),
])
->fetchCol();
}