Namespace drupalSettings setup.

Created on 5 October 2023, 9 months ago
Updated 31 October 2023, 8 months ago

Problem/Motivation

Currently this module is initializing its settings like this in the gdpr_video.module file:

      $page['#attached']['drupalSettings'] = [ ... ];

The problem is if this module loads after another module that's also using Drupal settings, it will wipe out that module's settings. In my case it was breaking the ajax_loader module.

Proposed resolution

Easiest fix is to just write all this module's settings under a "gdprVideo" key in the settings so that it doesn't affect any other modules. That's what the attached patch does.

πŸ› Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jacobbell84

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

Comments & Activities

Production build 0.69.0 2024