Skip to content

Entity: create new

Plugin ID: eca_new_entity

Available since: 1.0.0

Create a new content entity without saving it.

Fields

Name of token — config key: token_name

Provide the name of a token that holds the new entity. Please provide the token name only, without brackets.

Type: textfield · Required: no · Default: empty string

Type — config key: type

The type of the new entity.
Note: to create a new user entity, enable the eca_user module and use the "User: create new" action from there.
When using the "Defined by token" option, make sure there is a token with this name: eca_new_entity_type

Type: select · Required: no · Default: empty string

Allowed values depend on the configuration of the target site.

Value format: <entity_type_id> <bundle>, space separated. Both parts are required, wildcards are not supported.

Language — config key: langcode

The language code of the new entity.
When using the "Defined by token" option, make sure there is a token with this name: eca_new_entity_langcode

Type: select · Required: no · Default: empty string

Allowed values depend on the configuration of the target site.

Value format: A language code enabled on the target site, for example en. The special value _interface means the current interface language.

Entity label — config key: label

The label of the new entity.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Published — config key: published

Whether the entity should be published or not.

Type: checkbox · Required: no · Default: false

Owner UID — config key: owner

The owner UID of the new entity.
This field supports tokens.

Type: textfield · Required: no · Default: empty string