public function TBMegaMenuAdminController::getMenuConfig in The Better Mega Menu 8
Same name and namespace in other branches
- 2.x src/Controller/TBMegaMenuAdminController.php \Drupal\tb_megamenu\Controller\TBMegaMenuAdminController::getMenuConfig()
Get an existing menu configuration.
Parameters
array $data: A decoded JSON object used to load the configuration.
Return value
mixed An array or null.
1 call to TBMegaMenuAdminController::getMenuConfig()
- TBMegaMenuAdminController::saveMenuConfig in src/
Controller/ TBMegaMenuAdminController.php - Saves a menu configuration.
File
- src/
Controller/ TBMegaMenuAdminController.php, line 329
Class
- TBMegaMenuAdminController
- Handler for configuring and saving MegaMenu settings.
Namespace
Drupal\tb_megamenu\ControllerCode
public function getMenuConfig(array $data) {
return isset($data['menu_config']) ? $data['menu_config'] : NULL;
}