Drupal is a registered trademark of Dries Buytaert

conditions_helper

179 sites Security covered
View on drupal.org

The Conditions Helper module is an API-only module designed to simplify the
integration and utilization of Drupal Core's Conditions API for developers.
It provides a set of services and base classes to reduce boilerplate and
complexity when adding condition-based logic to other modules.

This module does not provide any UI or end-user features on its own. Instead,
it empowers other modules to easily build UIs for selecting and configuring
conditions, and to evaluate these conditions in their own specific contexts.

The primary goal of this module is to make it easier for developers to:

- Create settings forms where administrators can select which Condition plugins
are relevant or available for a specific feature.
- Build forms where users can configure instances of these selected Condition
plugins (including context mapping for context-aware conditions).
- Evaluate a set of configured conditions to control access, visibility, or
other conditional logic within their modules.

Contrib Modules Using This API:
- Entity Type Access Conditions
- Field Visibility Conditions
- Layout Builder Styles: Conditions
- Views Access Conditions

Activity

Total releases
2
First release
May 2025
Latest release
9 months ago
Release cadence
7 days
Stability
100% stable

Releases

Version Type Release date
1.0.1 Stable May 24, 2025
1.0.0 Stable May 17, 2025