You are here

public function SimpleMegaMenuHelperInterface::getMegaMenuTypeWhichTargetMenu in Simple Mega Menu 2.0.x

Same name and namespace in other branches
  1. 8 src/SimpleMegaMenuHelperInterface.php \Drupal\simple_megamenu\SimpleMegaMenuHelperInterface::getMegaMenuTypeWhichTargetMenu()

Get SimpleMegaMenuType entities which target a menu.

Parameters

string $menu_name: The menu name.

Return value

array An array keyed by the SimpleMegaMenuType id and with the label as value. Otherwise, an empty array.

1 method overrides SimpleMegaMenuHelperInterface::getMegaMenuTypeWhichTargetMenu()
SimpleMegaMenuHelper::getMegaMenuTypeWhichTargetMenu in src/SimpleMegaMenuHelper.php
Get SimpleMegaMenuType entities which target a menu.

File

src/SimpleMegaMenuHelperInterface.php, line 35

Class

SimpleMegaMenuHelperInterface
Interface SimpleMegaMenuHelperInterface.

Namespace

Drupal\simple_megamenu

Code

public function getMegaMenuTypeWhichTargetMenu($menu_name);