Skip to content
Snippets Groups Projects
Commit 2e62367c authored by Jess's avatar Jess
Browse files

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -304,7 +304,9 @@ public function getTasksBuild($current_route_name, RefinableCacheableDependencyI ...@@ -304,7 +304,9 @@ public function getTasksBuild($current_route_name, RefinableCacheableDependencyI
} }
// 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[] */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment