Element accessΒΆ
Available since: 1.0.0
Provided tokens
| Token | Description |
|---|---|
[event] |
The event. |
[event:webform] |
The webform. |
[event:webform:access_rules] |
The access rules. |
[event:webform:account] |
The user account entity. |
[event:webform:context] |
The webform context. |
[event:webform:element] |
The form element. |
[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. |
[account] |
The user account of the event. |
Fires when checking whether a user can access a specific webform element during create, view, or update operations. Use the appropriate access actions to grant or deny per-element access.
The [event:webform:operation] token is create, view, or update, and [event:webform:element] provides the element render array.