diff --git a/core/modules/system/lib/Drupal/system/Plugin/Block/SystemMenuBlock.php b/core/modules/system/lib/Drupal/system/Plugin/Block/SystemMenuBlock.php index 3b919ae..6bc7646 100644 --- a/core/modules/system/lib/Drupal/system/Plugin/Block/SystemMenuBlock.php +++ b/core/modules/system/lib/Drupal/system/Plugin/Block/SystemMenuBlock.php @@ -35,10 +35,17 @@ class SystemMenuBlock extends BlockBase implements ContainerFactoryPluginInterfa /** * Constructs a new SystemMenuBlock. * + * @param array $configuration + * A configuration array containing information about the plugin instance. + * @param string $plugin_id + * The plugin_id for the plugin instance. + * @param array $plugin_definition + * The plugin implementation definition. * @param \Drupal\menu_link\MenuTreeInterface $menu_tree * The menu tree. */ - public function __construct(MenuTreeInterface $menu_tree) { + public function __construct(array $configuration, $plugin_id, array $plugin_definition, MenuTreeInterface $menu_tree) { + parent::__construct($configuration, $plugin_id, $plugin_definition); $this->menuTree = $menu_tree; } diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module index ff0bf64..e36eb89 100644 --- a/core/modules/toolbar/toolbar.module +++ b/core/modules/toolbar/toolbar.module @@ -486,7 +486,7 @@ function toolbar_get_rendered_subtrees() { $query->condition('p' . $i, $item['p' . $i]); } $parents = $query->execute()->fetchCol(); - $subtree = $menu_tree->buildTreeData($item['menu_name'], array('expanded' => $parents, 'min_depth' => $item['depth']+1)); + $subtree = $menu_tree->buildTree($item['menu_name'], array('expanded' => $parents, 'min_depth' => $item['depth']+1)); toolbar_menu_navigation_links($subtree); $subtree = $menu_tree->output($subtree); $subtree = drupal_render($subtree);