public SystemController::compactPage($mode)
Sets whether the admin menu is in compact mode or not.
Parameters
string $mode: Valid values are 'on' and 'off'.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse
File
- core/modules/system/src/Controller/SystemController.php, line 175
Class
- SystemController
- Returns responses for System routes.
Namespace
Drupal\system\Controller
Code
1 2 3 4 | public function compactPage( $mode ) { user_cookie_save( array ( 'admin_compact_mode' => ( $mode == 'on' ))); return $this ->redirect( '<front>' ); } |
Please login to continue.