Commit 2e62367c authored by xjm's avatar xjm

Issue #2609114 by rakesh.gectcr, chx, dawehner, tim.plunkett: Unused variable...

Issue #2609114 by rakesh.gectcr, chx, dawehner, tim.plunkett: Unused variable in LocalTaskManager class
parent 9fb76eaf
......@@ -304,7 +304,9 @@ public function getTasksBuild($current_route_name, RefinableCacheableDependencyI
}
// Pre-fetch all routes involved in the tree. This reduces the number
// of SQL queries that would otherwise be triggered by the access manager.
$routes = $route_names ? $this->routeProvider->getRoutesByNames($route_names) : array();
if ($route_names) {
$this->routeProvider->getRoutesByNames($route_names);
}
foreach ($tree as $level => $instances) {
/** @var $instances \Drupal\Core\Menu\LocalTaskInterface[] */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment