X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FPlugin%2FBlock%2FSystemMenuBlock.php;h=a551ca64d3c6d01c97d8c9fe6b0e62fb2c0b182c;hb=9424afc6c1f518c301bf87a23c047d1873435d05;hp=849dee92fe52621f23252fd86d915cb5cc37ab66;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/system/src/Plugin/Block/SystemMenuBlock.php b/web/core/modules/system/src/Plugin/Block/SystemMenuBlock.php index 849dee92f..a551ca64d 100644 --- a/web/core/modules/system/src/Plugin/Block/SystemMenuBlock.php +++ b/web/core/modules/system/src/Plugin/Block/SystemMenuBlock.php @@ -5,7 +5,6 @@ namespace Drupal\system\Plugin\Block; use Drupal\Core\Block\BlockBase; use Drupal\Core\Cache\Cache; use Drupal\Core\Form\FormStateInterface; -use Drupal\Core\Menu\MenuActiveTrailInterface; use Drupal\Core\Menu\MenuLinkTreeInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -17,7 +16,10 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * id = "system_menu_block", * admin_label = @Translation("Menu"), * category = @Translation("Menus"), - * deriver = "Drupal\system\Plugin\Derivative\SystemMenuBlock" + * deriver = "Drupal\system\Plugin\Derivative\SystemMenuBlock", + * forms = { + * "settings_tray" = "\Drupal\system\Form\SystemMenuOffCanvasForm", + * }, * ) */ class SystemMenuBlock extends BlockBase implements ContainerFactoryPluginInterface { @@ -29,13 +31,6 @@ class SystemMenuBlock extends BlockBase implements ContainerFactoryPluginInterfa */ protected $menuTree; - /** - * The active menu trail service. - * - * @var \Drupal\Core\Menu\MenuActiveTrailInterface - */ - protected $menuActiveTrail; - /** * Constructs a new SystemMenuBlock. * @@ -47,13 +42,10 @@ class SystemMenuBlock extends BlockBase implements ContainerFactoryPluginInterfa * The plugin implementation definition. * @param \Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree * The menu tree service. - * @param \Drupal\Core\Menu\MenuActiveTrailInterface $menu_active_trail - * The active menu trail service. */ - public function __construct(array $configuration, $plugin_id, $plugin_definition, MenuLinkTreeInterface $menu_tree, MenuActiveTrailInterface $menu_active_trail) { + public function __construct(array $configuration, $plugin_id, $plugin_definition, MenuLinkTreeInterface $menu_tree) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->menuTree = $menu_tree; - $this->menuActiveTrail = $menu_active_trail; } /** @@ -64,8 +56,7 @@ class SystemMenuBlock extends BlockBase implements ContainerFactoryPluginInterfa $configuration, $plugin_id, $plugin_definition, - $container->get('menu.link_tree'), - $container->get('menu.active_trail') + $container->get('menu.link_tree') ); }