You are here

public function SubrequestsTree::getNumLevels in Subrequests 8.2

Same name and namespace in other branches
  1. 3.x src/SubrequestsTree.php \Drupal\subrequests\SubrequestsTree::getNumLevels()

Gets the number of levels in the stack.

Return value

int

File

src/SubrequestsTree.php, line 36

Class

SubrequestsTree
Value class that holds the execution tree.

Namespace

Drupal\subrequests

Code

public function getNumLevels() {
  return $this
    ->count();
}