Skip to content

Pre render notificationΒΆ

Plugin ID: push_framework_channel:pre_render

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 after the notification has been built but before it is rendered for a specific language. Use this to alter the render array elements before they are turned into final markup.

The [push_notification:elements] token provides access to the render array, alongside [push_notification:language_key] and the base tokens (channel, recipient, entity, title, display_mode).