You are here

public function SimpleMegaMenuStorage::revisionIds in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x src/SimpleMegaMenuStorage.php \Drupal\simple_megamenu\SimpleMegaMenuStorage::revisionIds()

Gets a list of Simple megamenu revision IDs for a specific Simple megamenu.

Parameters

\Drupal\simple_megamenu\Entity\SimpleMegaMenuInterface $entity: The Simple mega menu entity.

Return value

int[] Simple mega menu revision IDs (in ascending order).

Overrides SimpleMegaMenuStorageInterface::revisionIds

File

src/SimpleMegaMenuStorage.php, line 23

Class

SimpleMegaMenuStorage
Defines the storage handler class for Simple mega menu entities.

Namespace

Drupal\simple_megamenu

Code

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