MaintenanceMode
class MaintenanceMode implements MaintenanceModeInterface (View source)
Provides the default implementation of the maintenance mode service.
Properties
| protected StateInterface | $state | The state. |
Methods
bool
bool
exempt(AccountInterface $account)
Determines whether a user has access to the site in maintenance mode.
Details
__construct(StateInterface $state)
Constructs a new maintenance mode service.
bool
applies(RouteMatchInterface $route_match)
Returns whether the site is in maintenance mode.
bool
exempt(AccountInterface $account)
Determines whether a user has access to the site in maintenance mode.