You are here

public function SystemMenuBlock::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/system/src/Plugin/Derivative/SystemMenuBlock.php \Drupal\system\Plugin\Derivative\SystemMenuBlock::__construct()
  2. 8 core/modules/system/src/Plugin/Block/SystemMenuBlock.php \Drupal\system\Plugin\Block\SystemMenuBlock::__construct()
Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Plugin/Derivative/SystemMenuBlock.php \Drupal\system\Plugin\Derivative\SystemMenuBlock::__construct()

Constructs new SystemMenuBlock.

Parameters

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

File

core/modules/system/src/Plugin/Derivative/SystemMenuBlock.php, line 35
Contains \Drupal\system\Plugin\Derivative\SystemMenuBlock.

Class

SystemMenuBlock
Provides block plugin definitions for custom menus.

Namespace

Drupal\system\Plugin\Derivative

Code

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