Skip to content

Validate content entity

Available since: 2.1.0

When an entity is undergoing validation.

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.
[entity] The entity of the event.
[ENTITY_TYPE] The entity of the event under the name of its entity type.

Fires when a content entity undergoes validation (e.g., during form submission or REST API operations). Allows adding custom validation rules without writing PHP code.

Use conditions and the appropriate validation actions to add violation messages that will prevent the entity from being saved.

Fields

Type (and bundle)

This field provides a list with all created content entities and its bundles. You als can also select -any-, if you want to react to all types or bundles.