Configure Config Target in settings form

Created on 4 June 2025, about 2 months ago

Problem/Motivation

Coming back to the issue first described here:
https://www.drupal.org/project/s3fs/issues/3089225 β†’

Core now has a way to highlight when config has been overriden:
https://www.drupal.org/project/drupal/issues/2408549 πŸ› Display status message on configuration forms when there are overridden values Fixed

Steps to reproduce

1. In settings.php override a config value like
$config['s3fs.settings']['bucket'] = 'my-s3-bucket-prod';
2. Visit /admin/config/media/s3fs
3. No indication that bucket value is overwritten

Proposed resolution

Use #config_target on relevant fields in SettingsForm.
If done correctly will get a status message like attached

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia jon nunan

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

Merge Requests

Comments & Activities

  • Issue created by @jon nunan
  • Pipeline finished with Failed
    about 2 months ago
    Total: 373s
    #513916
  • πŸ‡ΊπŸ‡ΈUnited States cmlara

    Core now has a way to highlight when config has been overriden:

    Interesting, I knew that config_target would allow usage of Core validation of config, and IIRC it could be used to render the config forms (we are not ready for that in s3fs) however was not aware it was now the solution for indicating overrides.

    Could be useful to adopt.

Production build 0.71.5 2024