Entity: load via reference¶
Available since: 1.0.0
Load a single entity that is referenced by an entity from the current scope or by certain properties, and store it as a token.
Fields¶
Field name entity reference
-
The field name of the entity reference.
This field supports tokens. Name of token
-
Provide the name of a token that holds the loaded entity. Please provide the token name only, without brackets.
Load entity from
-
Loads the entity from the given list and/or properties below.
When using the "Defined by token" option, make sure there is a token with this name: eca_token_load_entity_ref_from Entity type
-
The type of the entity to be loaded.
When using the "Defined by token" option, make sure there is a token with this name: eca_token_load_entity_ref_entity_type Entity ID
-
The ID of the entity to be loaded.
Revision ID
-
The revision ID of the entity to be loaded.
Property values
-
A key-value list of raw field values of the entity to load. This will only be used when loading by properties is selected above. Supports YAML format. Example:
field_mynumber: 1. When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: title: "[node:title]"
This field supports tokens. Language
-
The language code of the entity to be loaded.
When using the "Defined by token" option, make sure there is a token with this name: eca_token_load_entity_ref_langcode Load latest revision
-
Whether loading the latest revision or not.
Load unchanged values
-
Whether loading the unchanged values of fields or not.
Entity
-
Provide the token name of the entity that this action should operate with. Please provide the token name only, without brackets.
See also: Tokens being forwarded