MaintenanceModeInterface

Defines the interface for the maintenance mode service. Hierarchy interface \Drupal\Core\Site\MaintenanceModeInterface File core/lib/Drupal/Core/Site/MaintenanceModeInterface.php, line 11 Namespace Drupal\Core\Site Members Name Modifiers Type Description MaintenanceModeInterface::applies public function Returns whether the site is in maintenance mode. MaintenanceModeInterface::exempt public function Determines whether a user has access to the site in maintenance

MaintenanceMode::__construct

public MaintenanceMode::__construct(StateInterface $state) Constructs a new maintenance mode service. Parameters \Drupal\Core\State\StateInterface $state: The state. File core/lib/Drupal/Core/Site/MaintenanceMode.php, line 27 Class MaintenanceMode Provides the default implementation of the maintenance mode service. Namespace Drupal\Core\Site Code public function __construct(StateInterface $state) { $this->state = $state; }

MaintenanceMode::exempt

public MaintenanceMode::exempt(AccountInterface $account) Determines whether a user has access to the site in maintenance mode. Parameters \Drupal\Core\Session\AccountInterface $account: The logged in user. Return value bool TRUE if the user should be exempted from maintenance mode. Overrides MaintenanceModeInterface::exempt File core/lib/Drupal/Core/Site/MaintenanceMode.php, line 51 Class MaintenanceMode Provides the default implementation of the maintenance mode service. Namespace D

MaintenanceMode::applies

public MaintenanceMode::applies(RouteMatchInterface $route_match) Returns whether the site is in maintenance mode. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value bool TRUE if the site is in maintenance mode. Overrides MaintenanceModeInterface::applies File core/lib/Drupal/Core/Site/MaintenanceMode.php, line 34 Class MaintenanceMode Provides the default implementation of the maintenance mode service. Namespace Drupal\Core\Site C

MaintenanceMode::$state

The state. Type: \Drupal\Core\State\StateInterface File core/lib/Drupal/Core/Site/MaintenanceMode.php, line 19 Class MaintenanceMode Provides the default implementation of the maintenance mode service. Namespace Drupal\Core\Site Code protected $state;

MaintenanceMode

Provides the default implementation of the maintenance mode service. Hierarchy class \Drupal\Core\Site\MaintenanceMode implements MaintenanceModeInterface File core/lib/Drupal/Core/Site/MaintenanceMode.php, line 12 Namespace Drupal\Core\Site Members Name Modifiers Type Description MaintenanceMode::$state protected property The state. MaintenanceMode::applies public function Returns whether the site is in maintenance mode. Overrides MaintenanceModeInterface::appli

maintenance-task-list.html.twig

Default theme implementation for a list of maintenance tasks to perform. Available variables: tasks: A list of maintenance tasks to perform. Each item in the list has the following variables: item: The maintenance task. attributes: HTML attributes for the maintenance task. status: (optional) Text describing the status of the maintenance task, 'active' or 'done'. File core/modules/system/templates/maintenance-task-list.html.twig Related topics Theme system overview Functions and templa

maintenance-page.html.twig

Default theme implementation to display a single Drupal page while offline. All available variables are mirrored in page.html.twig. Some may be blank but they are provided for consistency. See also template_preprocess_maintenance_page() File core/modules/system/templates/maintenance-page.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

MainContentViewSubscriber::__construct

public MainContentViewSubscriber::__construct(ClassResolverInterface $class_resolver, RouteMatchInterface $route_match, array $main_content_renderers) Constructs a new MainContentViewSubscriber object. Parameters \Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver service. \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. array $main_content_renderers: The available main content renderer service IDs, keyed by format. File co

MainContentViewSubscriber::WRAPPER_FORMAT

URL query attribute to indicate the wrapper used to render a request. The wrapper format determines how the HTML is wrapped, for example in a modal dialog. File core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php, line 54 Class MainContentViewSubscriber View subscriber rendering main content render arrays into responses. Namespace Drupal\Core\EventSubscriber Code const WRAPPER_FORMAT = '_wrapper_format';