Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: MCP Sentinel 2.33.0 — Minor update available for module mcp_sentinel (2.33.0). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Entity fallback values

8 sites Security covered Drupal 8–11

Part of the Entity ecosystem · 306 projects

View on drupal.org

This module allows you to define a priority order for entity fields so that if a field is empty, a value from the next field in the sequence is used. This avoids the need for custom code when you want to display content from one of several optional fields.

EntityFallbackValue provides developers with a flexible cascade system to retrieve entity field values based on defined priorities.

The problem it solves

When displaying content, you often want to show a value that can be carried by multiple optional fields. Instead of writing custom logic each time, EntityFallbackValue lets you define a priority chain once — if the first field is empty, it falls back to the next, and so on.

Features

  • Plugin system — define your own fallback chains with a structured, reusable plugin API
  • Token integration — use fallback values anywhere tokens are supported
  • Twig method — access fallback values directly in your templates

Example use case

An entity has three optional description fields: Long description, Description, and Chapô. You want to display whichever is filled in, in that priority order. Define the chain once via a plugin, then use the token or Twig method to retrieve the resolved value — no custom PHP needed at the template level.

Documentation

For installation and usage instructions, see the README.txt file included in the module repository.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Jun 2023
Latest release
3 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.1.2 Stable 8–11 Jun 11, 2026
1.1.1 Stable 8–11 Jun 5, 2026
1.1.0 Stable 8–11 May 22, 2026
1.1.0-rc1 Pre-release 8–11 May 22, 2026
1.0.1-rc1 Pre-release 8–10 Sep 9, 2024
1.0.0 Stable Jun 23, 2023
1.0.0-rc4 Pre-release Jun 23, 2023