MaintenanceModeEnabledEvent
in package
implements
IEvent
Event fired when maintenance mode is enabled.
This event is triggered when an administrator enables maintenance mode, making the site unavailable to regular users.
Use cases:
- Notify administrators of maintenance mode activation
- Update external status pages or monitoring systems
- Log maintenance windows for compliance
- Send notifications to users about scheduled downtime
- Trigger cache clearing or preparation tasks
- Update load balancer or CDN configurations
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
- $enabledBy : string
- $message : string
Methods
- __construct() : mixed
- getName() : string
Properties
$enabledBy read-only
public
string
$enabledBy
$message read-only
public
string
$message
Methods
__construct()
public
__construct(string $enabledBy, string $message) : mixed
Parameters
- $enabledBy : string
-
Username or identifier of who enabled maintenance mode
- $message : string
-
Maintenance message to display to users
getName()
public
getName() : string