Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Provides a computed field type whose value depends on whether another field is empty or not. It presents a TRUE or FALSE result, which can optionally be set inverted.

Some use cases

  • Search API indexing.
  • Exposing empty/non-empty information about private fields through REST/JSON:API.
  • Your very special case.

How to use it

Just like any other field module

A Field Is Empty field can be added and configured through the admin UI in the usual way. Its value will be recalculated whenever the parent entity is saved, and stored in the database.

As a computed base field

A field can be added programmatically to any entity type. This approach makes it a base field, available on all bundles of the entity type. See the example included in the project package.

As a computed bundle field

It is also possible to add a field programmatically to an entity bundle. This approach requires #2986836 to be merged or a patch applied (tested with this one). See the example that will be included in the project package once the core issue is closed.

Related core issues

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
1
Tracked since
Apr 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.1 Stable Apr 14, 2024