Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Site/MaintenanceModeInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\Core\Site; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Session\AccountInterface; /** * Defines the interface for the maintenance mode service. */ interface MaintenanceModeInterface { /** * Returns whether the site is in maintenance mode. * * @param \Drupal\Core\Routing\RouteMatchInterface $route_match * The current route match. * * @return bool * TRUE if the site is in maintenance mode. */ public function applies(RouteMatchInterface $route_match); /** * Determines whether a user has access to the site in maintenance mode. * * @param \Drupal\Core\Session\AccountInterface $account * The logged in user. * * @return bool * TRUE if the user should be exempted from maintenance mode. */ public function exempt(AccountInterface $account); }