You are here

public function ProjectStorage::revisionIds in Drupal PM (Project Management) 4.x

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

Parameters

\Drupal\pm_project\Entity\ProjectInterface $entity: The Project entity.

Return value

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

Overrides ProjectStorageInterface::revisionIds

File

modules/pm_project/src/ProjectStorage.php, line 22

Class

ProjectStorage
Defines the storage handler class for Project entities.

Namespace

Drupal\pm_project

Code

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