You are here

public function AccordionMenusBlock::__construct in Accordion Menus 8.3

Same name in this branch
  1. 8.3 src/Plugin/Derivative/AccordionMenusBlock.php \Drupal\accordion_menus\Plugin\Derivative\AccordionMenusBlock::__construct()
  2. 8.3 src/Plugin/Block/AccordionMenusBlock.php \Drupal\accordion_menus\Plugin\Block\AccordionMenusBlock::__construct()
Same name and namespace in other branches
  1. 8.4 src/Plugin/Derivative/AccordionMenusBlock.php \Drupal\accordion_menus\Plugin\Derivative\AccordionMenusBlock::__construct()
  2. 8 src/Plugin/Derivative/AccordionMenusBlock.php \Drupal\accordion_menus\Plugin\Derivative\AccordionMenusBlock::__construct()
  3. 8.2 src/Plugin/Derivative/AccordionMenusBlock.php \Drupal\accordion_menus\Plugin\Derivative\AccordionMenusBlock::__construct()

Constructs new SystemMenuBlock.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $menu_storage: The menu storage.

File

src/Plugin/Derivative/AccordionMenusBlock.php, line 30

Class

AccordionMenusBlock
Provides block plugin definitions for accordion menus.

Namespace

Drupal\accordion_menus\Plugin\Derivative

Code

public function __construct(EntityStorageInterface $menu_storage) {
  $this->menuStorage = $menu_storage;
}