Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MaintenanceMode.php

function MaintenanceMode::__construct

Constructs a new maintenance mode service.

Parameters

\Drupal\Core\State\StateInterface $state: The state.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

core/lib/Drupal/Core/Site/MaintenanceMode.php, line 38

Class

MaintenanceMode
Provides the default implementation of the maintenance mode service.

Namespace

Drupal\Core\Site

Code

public function __construct(StateInterface $state, ConfigFactoryInterface $config_factory) {
    $this->state = $state;
    $this->config = $config_factory;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal