public function InvoiceStorage::revisionIds in Drupal PM (Project Management) 4.x
Gets a list of Invoice revision IDs for a specific Invoice.
Parameters
\Drupal\pm_invoice\Entity\InvoiceInterface $entity: The Invoice entity.
Return value
int[] Invoice revision IDs (in ascending order).
Overrides InvoiceStorageInterface::revisionIds
File
- modules/
pm_invoice/ src/ InvoiceStorage.php, line 22
Class
- InvoiceStorage
- Defines the storage handler class for Invoice entities.
Namespace
Drupal\pm_invoiceCode
public function revisionIds(InvoiceInterface $entity) {
return $this->database
->query('SELECT vid FROM {pm_invoice_revision} WHERE id=:id ORDER BY vid', [
':id' => $entity
->id(),
])
->fetchCol();
}