You are here

public function TBMegaMenuBuilder::getMenuConfig in The Better Mega Menu 2.x

Same name and namespace in other branches
  1. 8 src/TBMegaMenuBuilder.php \Drupal\tb_megamenu\TBMegaMenuBuilder::getMenuConfig()

Get configuration of menu.

Parameters

string $menu_name: The menu machine name.

string $theme: The theme machine name.

Return value

array|object The menu configuration info.

Overrides TBMegaMenuBuilderInterface::getMenuConfig

File

src/TBMegaMenuBuilder.php, line 137

Class

TBMegaMenuBuilder
Defines a TBMegaMenuBuilder.

Namespace

Drupal\tb_megamenu

Code

public function getMenuConfig(string $menu_name, string $theme) {
  $menu = self::getMenus($menu_name, $theme);
  return isset($menu) ? $menu
    ->getMenuConfig() : [];
}