Alter routeΒΆ
Available since: 1.0.0
Fires during route collection to alter routes.
Provided tokens
| Token | Description |
|---|---|
[event] |
The event. |
[event:machine_name] |
The machine name of the ECA event. |
[session_user] |
The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account. |
Fires during route collection, allowing modification of existing routes before they are saved. This is a build-time event that fires during cache rebuilds, not on every request.
Useful for changing route requirements (permissions), modifying route paths, or adding custom options to existing routes.