You are here

public function SubrequestsTree::getLowestLevel in Subrequests 8.2

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

Gets the lowest level.

Return value

\Drupal\subrequests\Subrequest[] The subrequests in the level.

File

src/SubrequestsTree.php, line 46

Class

SubrequestsTree
Value class that holds the execution tree.

Namespace

Drupal\subrequests

Code

public function getLowestLevel() {
  return $this
    ->offsetGet($this
    ->count() - 1);
}