You are here

public function RequestTree::isRoot in Subrequests 8

Is this tree the base one?

Return value

bool TRUE if the tree is for the master request.

File

src/Blueprint/RequestTree.php, line 65

Class

RequestTree
Contains the hierarchical information of the requests.

Namespace

Drupal\subrequests\Blueprint

Code

public function isRoot() {
  return !$this
    ->getParentId();
}