Problem/Motivation

When we try to enforce config for Automatic Entity Label, we end up with a config name of: auto_entitylabel.settings. Whereas it should be something like auto_entitylabel.settings.ENTITY_TYPE.BUNDLE.yml.

Steps to reproduce

1. Enable the Automatic Entity Label module
2. Configure it for a content type, or ECK entity type
3. Observe that the "config object" name is incorrect in the CED interface.
4. Enforce the config
5. Observe that the exported config has the incorrect name (auto_entitylabel.settings).
6. Observe that the exported config content is an empty array
7. Run drush cex, and observe the correct config name and content.

Proposed resolution

Figure out why this config entity appears to be treated as a simple config.

Remaining tasks

TBD

User interface changes

N/A

API changes

TBD

Data model changes

TBD

Comments

ergonlogic created an issue. See original summary.

star-szr’s picture

Drupal\auto_entitylabel\Form\AutoEntityLabelForm::getEditableConfigNames() only returns 'auto_entitylabel.settings'. The same class has a getConfigName() method (also protected) that returns the config name with the entity type and bundle.

It seems to me that the ideal here would be to fix this upstream by updating the getEditableConfigNames method, and having that add a call to getConfigName().

star-szr’s picture

Version: 1.0.x-dev » 2.0.x-dev
star-szr’s picture

Category: Bug report » Feature request
ergonlogic’s picture

I came across this again recently in a D11 upgrade. So it's still relevant.