Alter a row¶
Plugin ID: eca_views_data_export:alter_row
Available since: 1.0.0
Provided tokens
| Token | Description |
|---|---|
[user] |
The current user. Alias: current_user |
[current_result] |
The result object of the event. |
[current_row] |
The row object of the event. |
[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 for each row during a Views data export, allowing you to alter row data before it is written to the export file.
The [current_row] token contains the row data (field values keyed by field name) and [current_result] provides the raw Views result object for the row. You can optionally filter by View ID and Display ID to target specific exports.
Fields¶
View ID— config key:view_id-
Type:
textfield· Required: no · Default: empty stringValue format: The machine name of a view on the target site.
The machine name of the view to filter for. Leave empty to react to all views.
Display ID— config key:display_id-
Type:
textfield· Required: no · Default: empty stringValue format: The machine name of a display within the selected view, for example default or page_1.
The display ID within the view to filter for (e.g.,
data_export_1). Leave empty to react to all displays.