public function RevisionTreeIndex::getDefaultRevision in Multiversion 8
Same name and namespace in other branches
- 8.2 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\IndexCode
public function getDefaultRevision($uuid) {
$values = $this
->buildTree($uuid);
return $values['default_rev']['#rev'];
}