Allow access enabled toggles in twig templates

Created on 9 June 2023, over 1 year ago
Updated 12 June 2023, over 1 year ago

Problem/Motivation

Extend feature toggle capabilities using easily feature toggles in twig templates.

Steps to reproduce

None.

Proposed resolution

Implements hook_preprocess to allow access enabled features in every twig template.

Remaining tasks

Implements development.

User interface changes

None.

API changes

Add new getEnabledFeatures in FeatureManager and move constructor and properties from FeatureUtilsTrait to each class because now they have diverged.

Data model changes

None.

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇪🇸Spain jansete

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024