You are here

public function ConfigEntityRevisionsControllerBase::getRevisionIds in Config Entity Revisions 8

Same name and namespace in other branches
  1. 1.x src/ConfigEntityRevisionsControllerBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsControllerBase::getRevisionIds()

Get a list of revision IDs for a content entity.

1 call to ConfigEntityRevisionsControllerBase::getRevisionIds()
ConfigEntityRevisionsControllerBase::deleteRevision in src/ConfigEntityRevisionsControllerBase.php
Delete a single revision.

File

src/ConfigEntityRevisionsControllerBase.php, line 345

Class

ConfigEntityRevisionsControllerBase
Controller to make library functions available to various consumers.

Namespace

Drupal\config_entity_revisions

Code

public function getRevisionIds($content_entity_id) {
  $revisions = $this->connection
    ->select("config_entity_revisions_revision", 'c')
    ->fields('c', [
    'revision',
  ])
    ->condition('id', $content_entity_id)
    ->execute()
    ->fetchCol();
  return $revisions;
}