conditions_helper
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