Add an API to check configuration object status

Created on 18 December 2018, almost 6 years ago
Updated 28 March 2023, over 1 year ago

Problem/Motivation

There is no way to know if a configuration is modified since its installation.

Proposed resolution

As per @alexpott suggession at #2909435-85: Update block library page to adapt publishable block content implementation , create an API in config object which can use the hash to match the current object

Remaining tasks

User interface changes

API changes

Yes, there will be a new method in Drupal\Core\Config\Config

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

10.1

Component
Configuration 

Last updated about 10 hours ago

Created by

🇬🇧United Kingdom vijaycs85 London, UK

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • API change

    Changes an existing API or subsystem. Not backportable to earlier major versions, unless absolutely required to fix a critical bug.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

  • 🇮🇳India arunkumark Coimbatore

    The check whether the configuration got changed or not we can use the isDefault() on Config. Need the testing and API document update.

    Attached patch for the 10.1.x version.

Production build 0.71.5 2024