Module ignores settings.php overrides

Created on 26 August 2024, 4 months ago
Updated 17 September 2024, 3 months ago

Problem/Motivation

At the moment method Drupal\apitools\Api\Client\ClientBase::initializeConfiguration() uses the getRawData() method to get the configuration. However, in this way, the module ignores any additional changes made in settings.php

Steps to reproduce

In my case, I am using the drupal/zoomapi module, so I believe this example is enough illustrative.

  1. Install module drupal/zoomapi.
  2. Configure the zoomapi module, but leave any of the module's configurations empty.
  3. Add missed configuration in the settings.php
  4. Get configuration with the drush: drush php-eval "var_dump(\Drupal::service('plugin.manager.apitools_client')->load('zoomapi')->getConfiguration())"

As you can see the array with the result doesn't contain values from settings.php

Proposed resolution

Use Drupal\Core\Config\Config::getOriginal() instead of Drupal\Core\Config\Config::getRawData().

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine _tarik_ Lutsk

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024