Problem/Motivation
If configuration is imported in order to change the id of an existing matcher then the new id will be discarded.
The method MatcherBase::setConfiguration() completely discards the id parameter so that it can not be set through e.g. drush cim --partial or drush cedit.
Steps to reproduce
Use drush cedit or drush cim --partial to adjust a linkit profile by editing the matcher id.
Proposed resolution
Make sure that the id parameter is set according to the updated configuration.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3397743-2.patch | 1.15 KB | meanderix |
Comments
Comment #2
meanderix commentedHere is my proposed patch, which is much more in line with how other modules handle this. See e.g.
Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableTraitandDrupal\workflows\Plugin\WorkflowTypeBase.Comment #3
keshavv commentedComment #5
trackleft2I see you are deleting where UUID and Weight variables are being set, is this on purpose?
- $this->uuid = $configuration['uuid'];
- $this->weight = $configuration['weight'];
Comment #6
trackleft2Comment #7
mark_fullmer