Drupal is a registered trademark of Dries Buytaert
drupal 11.4.1 Update released for Drupal core (11.4.1)! drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)!

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.

Activity

Total releases
4
First release
May 2026
Latest release
3 weeks ago
Release cadence
7 days
Stability
75% stable

Release Timeline

Releases

Version Type Release date
1.1.2 Stable Jun 11, 2026
1.1.1 Stable Jun 5, 2026
1.1.0 Stable May 22, 2026
1.1.0-rc1 Pre-release May 22, 2026