You are here

public function RevisionTreeIndex::getDefaultRevision in Multiversion 8.2

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

Parameters

string $uuid:

Return value

string

Overrides RevisionTreeIndexInterface::getDefaultRevision

File

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

Class

RevisionTreeIndex
The revision tree index.

Namespace

Drupal\multiversion\Entity\Index

Code

public function getDefaultRevision($uuid) {
  $values = $this
    ->buildTree($uuid);
  return $values['default_rev']['#rev'];
}