public function WeMegaMenuAdminController::saveConfigWeMegaMenu in Drupal Mega Menu 8.x
Same name and namespace in other branches
- 8 src/Controller/WeMegaMenuAdminController.php \Drupal\we_megamenu\Controller\WeMegaMenuAdminController::saveConfigWeMegaMenu()
A function ajax save menu config.
1 string reference to 'WeMegaMenuAdminController::saveConfigWeMegaMenu'
File
- src/
Controller/ WeMegaMenuAdminController.php, line 88
Class
- WeMegaMenuAdminController
- Controller routines for block example routes.
Namespace
Drupal\we_megamenu\ControllerCode
public function saveConfigWeMegaMenu() {
if (isset($_POST['action']) && $_POST['action'] == 'save') {
$data_config = $_POST['data_config'];
$theme = $_POST['theme'];
$menu_name = $_POST['menu_name'];
WeMegaMenuBuilder::saveConfig($menu_name, $theme, $data_config);
we_megamenu_flush_render_cache();
}
exit;
}