You are here

public function OgMenuBlock::__construct in Organic Groups Menu (OG Menu) 8

Same name in this branch
  1. 8 src/Plugin/Derivative/OgMenuBlock.php \Drupal\og_menu\Plugin\Derivative\OgMenuBlock::__construct()
  2. 8 src/Plugin/Block/OgMenuBlock.php \Drupal\og_menu\Plugin\Block\OgMenuBlock::__construct()

Constructs new SystemMenuBlock.

Parameters

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

File

src/Plugin/Derivative/OgMenuBlock.php, line 36
Contains \Drupal\system\Plugin\Derivative\SystemMenuBlock.

Class

OgMenuBlock
Provides block plugin definitions for custom menus.

Namespace

Drupal\og_menu\Plugin\Derivative

Code

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