Problem/Motivation
The config is not deleted from core.entity_view_display.node.x.x.yml
I am not sure how big of an issue this is but my gut feeling is telling me that it's not right and that the module should
clean any config changes it mades when being uninstalled.
Steps to reproduce
1 - Install the module and enable on the content type of your choice (e.g: Basic page)
2 - Export the config
3 - Check that you have the field config into core.entity_view_display.node.page.default.yml
reading_time:
settings: { }
third_party_settings: { }
weight: 100
region: content
4 - Uninstall the module / Clear cache / run cron
5 - Export the config
6 - Check core.entity_view_display.node.page.default.yml
7 - Config field is not deleted.
Proposed resolution
- Clear config when the module is uninstalled
- Find the content config that needs to be updated from node_read_time.settings.yml
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork node_read_time-3339589
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
astonvictor commentedComment #6
astonvictor commentedImplemented uninstall hook to clear view disaply settings.