Commit 65ada1d1 authored by xjm's avatar xjm
Browse files

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

(cherry picked from commit a71b6415)
parent 213fbc8e
......@@ -271,7 +271,7 @@ protected function buildOverviewForm(array &$form, FormStateInterface $form_stat
'subgroup' => 'menu-parent',
'source' => 'menu-id',
'hidden' => TRUE,
'limit' => \Drupal::menuTree()->maxDepth() - 1,
'limit' => $this->menuTree->maxDepth() - 1,
],
[
'action' => 'order',
......
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