- Issue created by @sch4lly
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Hi
The first two sound like a perfect use case for our original feature flag... a module that you install/uninstall.
The third one makes me feel a bit icky. I would prefer selective preprocess hooks over a global twig extension.LR
- π©πͺGermany sch4lly
Hey!
In the meantime I published my module here: https://www.drupal.org/project/featureflags_extensions βThe twig extension is just a wrapper for FeatureFlag::isActive($flag_id), usable in twig like this: {% if featureflag_active('flag') %}
The other two features however are more "intrusive", for the permissions part I found no other solution than overriding the global PermissionsChecker service.
If you want you can take a look at the code and let me know what you think! I would still be open to include this in the main featureflags module.