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

Breadcrumb

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

function MaintenanceMode::getSiteMaintenanceMessage

Overrides MaintenanceModeInterface::getSiteMaintenanceMessage

File

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

Class

MaintenanceMode
Provides the default implementation of the maintenance mode service.

Namespace

Drupal\Core\Site

Code

public function getSiteMaintenanceMessage() {
    return new FormattableMarkup($this->config
        ->get('system.maintenance')
        ->get('message'), [
        '@site' => $this->config
            ->get('system.site')
            ->get('name'),
    ]);
}

API Navigation

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