Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Conditions

No security coverage Under active development 32 sites

The Conditions module provides tools for site builders and developers to create and manage reusable sets of rules. These rules, called conditions, can be added to forms and fields, allowing editors to configure display logic for content, and developers to determine what content is shown to whom based on these rules. This includes features for managing complex rule groupings and efficiently querying entities based on their assigned conditions.

The Conditions module provides reusable form elements, a field type, and services for working with Drupal's condition plugins — the same plugin type used for block visibility (request path, language, user role, and many more provided by core and contrib).

It lets site builders expose condition configuration to content editors directly on any form or field, and lets developers evaluate those conditions at runtime to decide what to show, where, and to whom.

Features

  • conditions form element — renders a configurable list of condition plugins with AND/OR logic
  • conditions_groups form element — renders multiple groups of conditions, each with its own logic and a published/unpublished toggle
  • ConditionsService — initializes condition plugins (including context mapping) and resolves nested condition groups at runtime
  • conditions_field sub-module — a field type that stores conditions as one row per condition (indexed by plugin ID), so entities can be queried efficiently by the conditions assigned to them
  • ConditionsFieldService — bulk lookups of condition data by entity ID or by condition configuration
  • AJAX-enabled widgets for managing condition groups directly on entity edit forms

Requirements

Getting started

The base module provides no admin UI of its own — integrate the conditions/conditions_groups form elements in your own forms, or enable the conditions_field sub-module to add a "Conditions" field to any entity type via the Field UI.

Ask your assistant about Conditions

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

1 tracked project depends on this one

Activity

Tracked releases
8
Tracked since
Aug 2024
Latest release
9 months ago
Releases (12 mo)
2 ▼ from 5
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-rc7 Pre-release 10–11 Jan 13, 2026
1.0.0-rc6 Pre-release 10–11 Jan 10, 2026
1.0.0-rc5 Pre-release 10–11 Dec 30, 2024
1.0.0-rc4 Pre-release 10–11 Dec 30, 2024
1.0.0-rc3 Pre-release 10–11 Dec 29, 2024
1.0.0-rc2 Pre-release 10–11 Dec 29, 2024
1.0.0-rc1 Pre-release 10–11 Nov 7, 2024
1.0.x-dev Dev 10–11 Aug 15, 2024