system_admin_compact_mode

function system_admin_compact_mode

system_admin_compact_mode()

Determines whether the current user is in compact mode.

Compact mode shows certain administration pages with less description text, such as the configuration page and the permissions page.

Whether the user is in compact mode is determined by a cookie, which is set for the user by \Drupal\system\Controller\SystemController::compactPage().

If the user does not have the cookie, the default value is given by the configuration variable 'system.site.admin_compact_mode', which itself defaults to FALSE. This does not have a user interface to set it: it is a hidden variable