public function TBMegaMenuBuilder::getBlockConfig in The Better Mega Menu 2.x
Same name and namespace in other branches
- 8 src/TBMegaMenuBuilder.php \Drupal\tb_megamenu\TBMegaMenuBuilder::getBlockConfig()
Get the configuration of blocks.
Parameters
string $menu_name: Menu Machine name.
string $theme: Theme machine name.
Return value
array The block config array
Overrides TBMegaMenuBuilderInterface::getBlockConfig
File
- src/
TBMegaMenuBuilder.php, line 81
Class
- TBMegaMenuBuilder
- Defines a TBMegaMenuBuilder.
Namespace
Drupal\tb_megamenuCode
public function getBlockConfig(string $menu_name, string $theme) {
$menu = self::getMenus($menu_name, $theme);
return $menu ? $menu
->getBlockConfig() : [];
}