From 21694e9cfd5b04c48fe93dff7dc5c6342fd05640 Mon Sep 17 00:00:00 2001
From: TAKTAK <matio89@2320090.no-reply.drupal.org>
Date: Tue, 2 Jun 2015 10:33:11 +0100
Subject: [PATCH] =?UTF-8?q?compatibility=20with=20Drupal=208=20b=C3=A9ta?=
 =?UTF-8?q?=2011?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 admin_toolbar.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/admin_toolbar.module b/admin_toolbar.module
index b48ff57..9960842 100644
--- a/admin_toolbar.module
+++ b/admin_toolbar.module
@@ -77,7 +77,7 @@ function admin_toolbar_toolbar_alter(&$items) {
  * @see drupal_render()
  */
 function toolbar_prerender_admin_toolbar_administration_tray(array $element) {
-  $menu_tree = \Drupal::menuTree();
+  $menu_tree = \Drupal::service('toolbar.menu_tree');
   // Render the top-level administration menu links.
   $parameters = new \Drupal\Core\Menu\MenuTreeParameters();
   $parameters->setRoot('system.admin')->excludeRoot()->setMaxDepth(4);
-- 
GitLab