Skip to content

VBO: Form build of Views bulk operation

Available since: 1.0.0

Provided tokens

Token Description
[form] The current form.
Alias: current_form
[form:id] The form ID.
[form:base_id] The form base ID.
[form:operation] The form operation.
[form:mode] The form mode.
[form:triggered] The form field name that triggered the form event.
[form:values]
[form:values:FIELD_NAME] The field value for each of the named fields.
[form:num_errors] The number of form errors.
[event] The event.
[event:view] The view config entity.
[event:view:id] The view ID.
[event:view:display_id] The display ID.
[event:action] The action plugin.
[event:action:plugin] The ID of the action plugin.
[event:action:config] An array with key value pairs of the configuration of the plugin.
[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 when the VBO action's configuration form is being built. This form appears after selecting a bulk operation and clicking 'Apply to selected items'. Use ECA actions to add custom form elements for collecting additional input from the user.

Auto-skip when empty

If no form elements are added by ECA, this step is automatically skipped and the user proceeds directly to the confirmation page.

Fields

Operation name

The operation name that identifies the bulk operation this event reacts to.

Optionally restrict by view ID

Optionally restrict to a specific View by machine name. Leave empty to react to all Views. Comma-separated for multiple values.

Optionally restrict by view display ID

Optionally restrict to a specific View display (e.g., page_1, block_1). Leave empty to react to all displays. Comma-separated for multiple values.