Same name in this branch
  1. 10 core/authorize.php \MAINTENANCE_MODE
  2. 10 core/install.php \MAINTENANCE_MODE
Same name and namespace in other branches
  1. 6.x install.php \MAINTENANCE_MODE
  2. 6.x update.php \MAINTENANCE_MODE
  3. 7.x install.php \MAINTENANCE_MODE
  4. 7.x authorize.php \MAINTENANCE_MODE
  5. 7.x update.php \MAINTENANCE_MODE
  6. 8.9.x core/authorize.php \MAINTENANCE_MODE
  7. 8.9.x core/install.php \MAINTENANCE_MODE
  8. 9 core/authorize.php \MAINTENANCE_MODE
  9. 9 core/install.php \MAINTENANCE_MODE

Global flag to identify update.php and authorize.php runs.

Identifies update.php and authorize.php runs, avoiding unwanted operations such as css/js preprocessing and translation, and solves some theming issues. The flag is checked in other places in Drupal code (not just authorize.php).

6 uses of MAINTENANCE_MODE
hook_cache_flush in core/core.api.php
Flush all persistent and static caches.
StatusReport::preRenderGroupRequirements in core/lib/Drupal/Core/Render/Element/StatusReport.php
#pre_render callback to group requirements.
StatusReportPage::preRenderCounters in core/modules/system/src/Element/StatusReportPage.php
#pre_render callback to create counter elements.
template_preprocess_install_page in core/includes/theme.inc
Prepares variables for install page templates.
user_role_permissions in core/modules/user/user.module
Determine the permissions for one or more roles.

... See full list

File

core/authorize.php, line 45
Administrative script for running authorized file operations.

Code

const MAINTENANCE_MODE = 'update';