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

Breadcrumb

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

function MaintenanceModeInterface::applies

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.

1 method overrides MaintenanceModeInterface::applies()
MaintenanceMode::applies in core/lib/Drupal/Core/Site/MaintenanceMode.php
Returns whether the site is in maintenance mode.

File

core/lib/Drupal/Core/Site/MaintenanceModeInterface.php, line 22

Class

MaintenanceModeInterface
Defines the interface for the maintenance mode service.

Namespace

Drupal\Core\Site

Code

public function applies(RouteMatchInterface $route_match);

API Navigation

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