You are here

function superfish_block_view_superfish_alter in Superfish 8

Implements hook_block_view_BASE_BLOCK_ID_alter().

File

./superfish.module, line 14
The jQuery Superfish plugin for Drupal menus.

Code

function superfish_block_view_superfish_alter(array &$build, BlockPluginInterface $block) {
  $menu_name = $block
    ->getDerivativeId();
  $build['#contextual_links']['menu'] = [
    'route_parameters' => [
      'menu' => $menu_name,
    ],
  ];
}