Render: view field¶
Available since: 1.1.0
View a field of a specified entity.
Fields¶
Field name
-
The machine name of the field. Example: field_tags
View mode
-
Example: default, teaser
Display options
-
Alternatively, instead of specifying a view mode above, you can set custom display options here by using YAML format.
Machine name
-
Optionally define a machine name of this render element. It will be made available under that name in the render array of the current event in scope. Nested elements can be set with using "][" brackets, for example details][title.
Token name
-
Optionally define a token name of this render element. It will be made available under that token name for later usage. Please provide the token name only, without brackets.
Element weight
-
Optionally specify an element weight. The lower the weight, the element appears before other elements having a higher weight.
Build mode
-
When using the "Defined by token" option, make sure there is a token with this name: eca_render_entity_view_field_mode Entity
-
Provide the token name of the entity that this action should operate with. Please provide the token name only, without brackets.