public function WeMegaMenuAdminController::styleOfBackendWeMegaMenu in Drupal Mega Menu 8.x
Same name and namespace in other branches
- 8 src/Controller/WeMegaMenuAdminController.php \Drupal\we_megamenu\Controller\WeMegaMenuAdminController::styleOfBackendWeMegaMenu()
A function set style backend.
1 string reference to 'WeMegaMenuAdminController::styleOfBackendWeMegaMenu'
File
- src/
Controller/ WeMegaMenuAdminController.php, line 129
Class
- WeMegaMenuAdminController
- Controller routines for block example routes.
Namespace
Drupal\we_megamenu\ControllerCode
public function styleOfBackendWeMegaMenu() {
if (isset($_POST['type'])) {
\Drupal::state()
->set('we_megamenu_backend_style', $_POST['type']);
we_megamenu_flush_render_cache();
}
exit;
}