Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\Core\EventSubscriber; | 3 namespace Drupal\Core\EventSubscriber; |
4 | 4 |
5 use Drupal\Component\Utility\SafeMarkup; | 5 use Drupal\Component\Render\FormattableMarkup; |
6 use Drupal\Core\Config\ConfigFactoryInterface; | 6 use Drupal\Core\Config\ConfigFactoryInterface; |
7 use Drupal\Core\Render\BareHtmlPageRendererInterface; | 7 use Drupal\Core\Render\BareHtmlPageRendererInterface; |
8 use Drupal\Core\Messenger\MessengerInterface; | 8 use Drupal\Core\Messenger\MessengerInterface; |
9 use Drupal\Core\Routing\RouteMatch; | 9 use Drupal\Core\Routing\RouteMatch; |
10 use Drupal\Core\Routing\UrlGeneratorInterface; | 10 use Drupal\Core\Routing\UrlGeneratorInterface; |
144 * | 144 * |
145 * @return \Drupal\Component\Render\MarkupInterface | 145 * @return \Drupal\Component\Render\MarkupInterface |
146 * The formatted site maintenance message. | 146 * The formatted site maintenance message. |
147 */ | 147 */ |
148 protected function getSiteMaintenanceMessage() { | 148 protected function getSiteMaintenanceMessage() { |
149 return SafeMarkup::format($this->config->get('system.maintenance')->get('message'), [ | 149 return new FormattableMarkup($this->config->get('system.maintenance')->get('message'), [ |
150 '@site' => $this->config->get('system.site')->get('name'), | 150 '@site' => $this->config->get('system.site')->get('name'), |
151 ]); | 151 ]); |
152 } | 152 } |
153 | 153 |
154 /** | 154 /** |