MaintenanceModeSubscriber::getSiteMaintenanceMessage

protected MaintenanceModeSubscriber::getSiteMaintenanceMessage()

Gets the site maintenance message.

Return value

\Drupal\Component\Render\MarkupInterface The formatted site maintenance message.

File

core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 137

Class

MaintenanceModeSubscriber
Maintenance mode subscriber for controller requests.

Namespace

Drupal\Core\EventSubscriber

Code

protected function getSiteMaintenanceMessage() {
  return SafeMarkup::format($this->config->get('system.maintenance')->get('message'), array(
    '@site' => $this->config->get('system.site')->get('name'),
  ));
}
doc_Drupal
2016-10-29 09:25:24
Comments
Leave a Comment

Please login to continue.