Template variables — view mode, logged in, front page
Open in builderThis is a property of the entity itself, so there’s no field name to fill in.
Raw entity
Open in builder (Raw entity)Reads the entity directly, before field formatters run.
- Snippet 1
{{ view_mode }} - Snippet 2
{% if logged_in %} … {% endif %} - Snippet 3
{% if is_front %} … {% endif %}
Gotcha
view_mode is set in entity templates; logged_in and is_front are default variables available in every template.