Skip to content

Build inline entity form

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: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.
[entity] The form entity.
[ENTITY_TYPE] The form entity with the token name being the ID of the entity type.
[parent] The parent entity, if one exists.
[event] The event.
[event:delta] The delta of the entity reference in the parent field.
[event:entity] The form entity.
[event:entity-bundle] The bundle of the form entity.
[event:entity-id] The form entity ID, only available if the entity is not new.
[event:entity-type] The form entity type.
[event:field-name] The name of the field.
[event:parent] The parent entity, if one exists.
[event:parent-bundle] The bundle of the parent entity, if one exists.
[event:parent-id] The ID of the parent entity, if one exists and it is not new.
[event:parent-type] The type of the parent entity, if one exists
[event:widget] The form widget ID.
[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.
[entity] The entity of the event.
[ENTITY_TYPE] The entity of the event under the name of its entity type.

Fields

Parent: Restrict by form ID

The form ID can be mostly found in the HTML <form> element as "id" attribute.

Restrict by entity type ID

Example: media, paragraph, storage

Restrict by entity bundle
Parent: Restrict by operation

Example: default, save, delete

Parent: Restrict by entity type ID

Example: node, taxonomy_term, user

Parent: Restrict by entity bundle

Example: article, tags

Parent: Restrict by field name

Example: field_paragraphs