You are here

public function RevisionTreeIndex::countRevs in Multiversion 8

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

@todo: {@link https://www.drupal.org/node/2597422 The revision tree also contain missing revisions. We need a better way to count.}

File

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

Class

RevisionTreeIndex
The revision tree index.

Namespace

Drupal\multiversion\Entity\Index

Code

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