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

8.0.x
xjm 2015-11-09 15:36:21 -06:00
parent 9fb76eafd6
commit 2e62367ce3
1 changed files with 3 additions and 1 deletions

View File

@ -304,7 +304,9 @@ class LocalTaskManager extends DefaultPluginManager implements LocalTaskManagerI
}
// 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[] */