Skip to content

Alter handler invokeΒΆ

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:args] The handler arguments.
[event:webform:handler] The handler.
[event:webform:method_name] The name of the method.
[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 whenever any method on a webform handler is about to be invoked. This is a powerful interception point for conditionally enabling/disabling handlers, altering handler arguments, or preprocessing data before it reaches the handler.

The [event:webform:method_name] token identifies the method (e.g., submit_form, post_save, pre_save).