You are here

public function RevisionTreeIndex::getDefaultBranch in Multiversion 8.2

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

Parameters

string $uuid:

Return value

string[]

Overrides RevisionTreeIndexInterface::getDefaultBranch

File

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

Class

RevisionTreeIndex
The revision tree index.

Namespace

Drupal\multiversion\Entity\Index

Code

public function getDefaultBranch($uuid) {
  $values = $this
    ->buildTree($uuid);
  return $values['default_branch'];
}