main/core/Controller/HomeController.php
public function saveMenuSettingsAction($menu, $login, $workspaces, $locale)
    {
        try {
            $this->manager->saveHomeParameters($menu, $login, $workspaces, $locale);

            return new Response('true');
        } catch (\Exception $e) {
            return new Response('false');
        }
    }
public function saveMenuSettingsAction($menu, $login, $workspaces, $locale)
    {
        try {
            $this->manager->saveHomeParameters($menu, $login, $workspaces, $locale);

            return new Response('true');
        } catch (\Exception $e) {
            return new Response('false');
        }
    }
public function saveMenuSettingsAction ( $ menu , $ login , $ workspaces , $ locale ) { try { $ this -> manager -> saveHomeParameters ( $ menu , $ login , $ workspaces , $ locale ) ; return new Response ( 'true' ) ; } catch ( \ Exception $ e ) { return new Response ( 'false' ) ; } }
Save the menu settings.

@Route(
"/content/menu/save/settings/{menu}/{login}/{workspaces}/{locale}",
name="claroline_content_menu_save_settings",
options = {"expose" = true}
)

@param int  $menu       The id of the menu
@param bool $login      A Boolean that determine if there is the login button in the footer
@param bool $workspaces A Boolean that determine if there is the workspace button in the footer
@param bool $locale     A boolean that determine if there is a locale button in the header

@Secure(roles="ROLE_HOME_MANAGER")

@return Response
Save the menu settings .