Skip to content

ECA Helper: Preprocess

Available since: unknown

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 theme preprocessing, allowing you to alter template variables before rendering. Select a specific preprocess hook to target (e.g., node, page, block) or listen to all hooks.

The [hook] token identifies the current preprocess hook being executed.

Fields

This event provides tokens: "[hook]" the preprocess hook id to identify.