Issue #2609114 by rakesh.gectcr, chx, dawehner, tim.plunkett: Unused variable in LocalTaskManager class
parent
9fb76eafd6
commit
2e62367ce3
|
@ -304,7 +304,9 @@ class LocalTaskManager extends DefaultPluginManager implements LocalTaskManagerI
|
||||||
}
|
}
|
||||||
// Pre-fetch all routes involved in the tree. This reduces the number
|
// Pre-fetch all routes involved in the tree. This reduces the number
|
||||||
// of SQL queries that would otherwise be triggered by the access manager.
|
// 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) {
|
foreach ($tree as $level => $instances) {
|
||||||
/** @var $instances \Drupal\Core\Menu\LocalTaskInterface[] */
|
/** @var $instances \Drupal\Core\Menu\LocalTaskInterface[] */
|
||||||
|
|
Loading…
Reference in New Issue