
| Current Path : /var/www/html/ift/web/core/lib/Drupal/Core/Site/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/lib/Drupal/Core/Site/MaintenanceModeInterface.php |
<?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);
}