You are here

public function HomeboxLayoutStorage::revisionIds in Homebox 8

Gets a list of Homebox Layout revision IDs for a specific Homebox Layout.

Parameters

\Drupal\homebox\Entity\HomeboxLayoutInterface $entity: The Homebox Layout entity.

Return value

int[] Homebox Layout revision IDs (in ascending order).

Overrides HomeboxLayoutStorageInterface::revisionIds

File

src/HomeboxLayoutStorage.php, line 23

Class

HomeboxLayoutStorage
Defines the storage handler class for Homebox Layout entities.

Namespace

Drupal\homebox

Code

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