public function GroupMenuBlock::__construct in Group Content Menu 8
Same name in this branch
- 8 src/Plugin/Derivative/GroupMenuBlock.php \Drupal\group_content_menu\Plugin\Derivative\GroupMenuBlock::__construct()
- 8 src/Plugin/Block/GroupMenuBlock.php \Drupal\group_content_menu\Plugin\Block\GroupMenuBlock::__construct()
Constructs new SystemMenuBlock.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $menu_storage: The menu storage.
File
- src/
Plugin/ Derivative/ GroupMenuBlock.php, line 28
Class
- GroupMenuBlock
- Provides block plugin definitions for custom menus.
Namespace
Drupal\group_content_menu\Plugin\DerivativeCode
public function __construct(EntityStorageInterface $menu_storage) {
$this->menuStorage = $menu_storage;
}