constant MAINTENANCE_MODE in Drupal 9
Same name in this branch
- 9 core/authorize.php \MAINTENANCE_MODE
- 9 core/install.php \MAINTENANCE_MODE
Same name and namespace in other branches
- 8 core/authorize.php \MAINTENANCE_MODE
- 8 core/install.php \MAINTENANCE_MODE
- 6 update.php \MAINTENANCE_MODE
- 6 install.php \MAINTENANCE_MODE
- 7 update.php \MAINTENANCE_MODE
- 7 authorize.php \MAINTENANCE_MODE
- 7 install.php \MAINTENANCE_MODE
Global flag to indicate the site is in installation mode.
The constant is defined using define() instead of const so that PHP versions prior to 5.3 can display proper PHP requirements instead of causing a fatal error.
5 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.
- user_role_permissions in core/
modules/ user/ user.module - Determine the permissions for one or more roles.
- _drupal_maintenance_theme in core/
includes/ theme.maintenance.inc - Sets up the theming system for maintenance page.
File
- core/
install.php, line 22 - Initiates a browser-based installation of Drupal.
Code
define('MAINTENANCE_MODE', 'install');