document that config/optional is safe to use with duplicate configuration

Created on 21 June 2023, about 1 year ago
Updated 21 July 2023, about 1 year ago

Problem/Motivation

The comments in ConfigInstaller::installOptionalConfig() say that optional config is ignored if it exists already:

      // Only list configuration that:
      // - does not already exist
      // - is a configuration entity (this also excludes config that has an
      //   implicit dependency on modules that are not yet installed)

However, this is only documented in this inline comment, and not in the 'config_api' docs topic in core.api.php.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.1

Component
Documentation 

Last updated 1 minute ago

No maintainer
Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024