Use Drupal Condition Plugin for visibility options

Created on 18 July 2024, 4 months ago
Updated 30 August 2024, 3 months ago

Problem/Motivation

Currently we manually implement conditions for visualisation in https://git.drupalcode.org/project/acquia_vwo/-/blob/1.0.x/src/Service/C...
This was done like this, because we are extending VWO module.

Proposed resolution

We need to use Drupal's core Condition plugins. This can be done in the same way proposed in https://www.drupal.org/project/vwo/issues/3462295 📌 Use Drupal Condition Plugin for visibility options Active once the respective issue is implemented.

Remaining tasks

  1. Wait until https://www.drupal.org/project/vwo/issues/3462295 📌 Use Drupal Condition Plugin for visibility options Active is done and then reuse the same conditional plugins for visualisation.
  2. Remove code that manually sets cache contexts
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom marcelovani London

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

Comments & Activities

Production build 0.71.5 2024