Commit 21694e9c authored by matio89's avatar matio89

compatibility with Drupal 8 béta 11

parent a934524f
...@@ -77,7 +77,7 @@ function admin_toolbar_toolbar_alter(&$items) { ...@@ -77,7 +77,7 @@ function admin_toolbar_toolbar_alter(&$items) {
* @see drupal_render() * @see drupal_render()
*/ */
function toolbar_prerender_admin_toolbar_administration_tray(array $element) { 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. // Render the top-level administration menu links.
$parameters = new \Drupal\Core\Menu\MenuTreeParameters(); $parameters = new \Drupal\Core\Menu\MenuTreeParameters();
$parameters->setRoot('system.admin')->excludeRoot()->setMaxDepth(4); $parameters->setRoot('system.admin')->excludeRoot()->setMaxDepth(4);
......
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