interface MaintenanceModeInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Site/MaintenanceModeInterface.php \Drupal\Core\Site\MaintenanceModeInterface
Defines the interface for the maintenance mode service.
Hierarchy
- interface \Drupal\Core\Site\MaintenanceModeInterface
Expanded class hierarchy of MaintenanceModeInterface
All classes that implement MaintenanceModeInterface
2 files declare their use of MaintenanceModeInterface
- MaintenanceModeSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ MaintenanceModeSubscriber.php - Contains \Drupal\Core\EventSubscriber\MaintenanceModeSubscriber.
- MaintenanceModeSubscriber.php in core/
modules/ user/ src/ EventSubscriber/ MaintenanceModeSubscriber.php - Contains \Drupal\user\EventSubscriber\MaintenanceModeSubscriber.
File
- core/
lib/ Drupal/ Core/ Site/ MaintenanceModeInterface.php, line 16 - Contains \Drupal\Core\Site\MaintenanceModeInterface.
Namespace
Drupal\Core\SiteView source
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);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MaintenanceModeInterface:: |
public | function | Returns whether the site is in maintenance mode. | 1 |
MaintenanceModeInterface:: |
public | function | Determines whether a user has access to the site in maintenance mode. | 1 |