Featureflags extensions
13 sites
Security covered
This module extends the functionality of the featureflags module by allowing you to enable or disable routes and permissions based on feature flags. It also provides a Twig function to easily check the status of a feature flag within your templates.
Overview
Provides some new functionality for the featureflags module:
- Enable/disable routes depending on featureflag
- Enable/disable permissions depending on featureflag
- Check featureflag status with a twig function
Usage
Routes and permissions can be set in the feature flag settings and will be exported as config.
Featureflag checking in twig works like this:
{% if featureflag_active("demoflag") %}
Flag is active!
{% endif %}
About the versions
For Drupal 10+ install Featureflags extensions version >= 1.1.3
For Drupal 11+ install Featureflags extensions version ^2.0.0