Issue #3123211 by jungle, Kristen Pol: Replace usages of \Drupal::menuTree() with IoC injection

merge-requests/2419/head
xjm 2020-05-09 13:11:03 -05:00
parent 9d8849513f
commit a71b6415b6
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ class MenuForm extends EntityForm {
'subgroup' => 'menu-parent',
'source' => 'menu-id',
'hidden' => TRUE,
'limit' => \Drupal::menuTree()->maxDepth() - 1,
'limit' => $this->menuTree->maxDepth() - 1,
],
[
'action' => 'order',