public static function MegaMenuConfig::loadMenu in The Better Mega Menu 8
Same name and namespace in other branches
- 2.x src/Entity/MegaMenuConfig.php \Drupal\tb_megamenu\Entity\MegaMenuConfig::loadMenu()
Overrides MegaMenuConfigInterface::loadMenu
See also
\Drupal\tb_megamenu\MegaMenuConfigInterface::loadMenu()
5 calls to MegaMenuConfig::loadMenu()
- MegaMenuAdd::validateForm in src/
Form/ MegaMenuAdd.php - TBMegaMenuAdminController::saveMenuConfig in src/
Controller/ TBMegaMenuAdminController.php - Saves a menu configuration.
- TBMegaMenuBuilder::getMenus in src/
TBMegaMenuBuilder.php - Get menus that belongs TB mega menu.
- tb_megamenu_update_8001 in ./
tb_megamenu.install - Migrate any settings from the DB table to configuration objects.
- tb_megamenu_update_megamenus in ./
tb_megamenu.module - Sync configuration with tb_megamenu when item in menu is updated.
File
- src/
Entity/ MegaMenuConfig.php, line 172
Class
- MegaMenuConfig
- Defines the Mega Menu Configuration entity.
Namespace
Drupal\tb_megamenu\EntityCode
public static function loadMenu($menu, $theme) {
$id = "{$menu}__{$theme}";
$config = self::load($id);
return $config;
}