You are here

public function RevisionTreeIndex::getOpenRevisions in Multiversion 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Index/RevisionTreeIndex.php \Drupal\multiversion\Entity\Index\RevisionTreeIndex::getOpenRevisions()

Parameters

string $uuid:

Return value

string[]

Overrides RevisionTreeIndexInterface::getOpenRevisions

File

src/Entity/Index/RevisionTreeIndex.php, line 193

Class

RevisionTreeIndex
The revision tree index.

Namespace

Drupal\multiversion\Entity\Index

Code

public function getOpenRevisions($uuid) {
  $revs = [];
  $values = $this
    ->buildTree($uuid);
  foreach ($values['open_revs'] as $rev => $element) {
    $revs[$rev] = $element['#rev_info']['status'];
  }
  return $revs;
}