You are here

public function CheeseburgerMenuBlock::createHooks in Cheeseburger Menu 5.0.x

Invokes all hooks provided by cheeseburger_menu module.

Parameters

\Drupal\cheeseburger_menu\CheeseburgerMenu[] $menus: Menus to invoke hooks on.

1 call to CheeseburgerMenuBlock::createHooks()
CheeseburgerMenuBlock::build in src/Plugin/Block/CheeseburgerMenuBlock.php
Builds and returns the renderable array for this block plugin.

File

src/Plugin/Block/CheeseburgerMenuBlock.php, line 383

Class

CheeseburgerMenuBlock
Provides a 'CheeseburgerMenu' block.

Namespace

Drupal\cheeseburger_menu\Plugin\Block

Code

public function createHooks(array $menus) {
  foreach ($menus as &$menu) {
    $this
      ->createMenuItemHooks($menu
      ->getMenuItems());
    $this->moduleHandler
      ->alter('cheeseburger_menu', $menu);
  }
}