public function RequestTree::getSubTrees in Subrequests 8
Find all the sub-trees in this tree.
Return value
static[] An array of trees.
File
- src/
Blueprint/ RequestTree.php, line 84
Class
- RequestTree
- Contains the hierarchical information of the requests.
Namespace
Drupal\subrequests\BlueprintCode
public function getSubTrees() {
$trees = array_map(function (Request $request) {
return $request->attributes
->get(static::SUBREQUEST_TREE);
}, $this
->getRequests());
return array_filter($trees);
}