while ($next_parent);
} } return $this->instances
[$route_name];
} /**
* {@inheritdoc}
*/
public function getTasksBuild($current_route_name, RefinableCacheableDependencyInterface &
$cacheability) { $tree =
$this->
getLocalTasksForRoute($current_route_name);
$build =
[];
// Collect all route names.
$route_names =
[];
foreach ($tree as $instances) { foreach ($instances as $child) { $route_names[] =
$child->
getRouteName();
} } // Pre-fetch all routes involved in the tree. This reduces the number
// of SQL queries that would otherwise be triggered by the access manager.