Skip to content

ECA Helper: Preprocess

Plugin ID: eca_helper_preprocess_hook:preprocess

Provided tokens

Token Description
[user] The current user.
Alias: current_user
[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.

Preprocess hook — config key: type

Type: select · Required: no · Default: -any-

Allowed values depend on the configuration of the target site.