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

Command icon 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

asirjacques created an issue. See original summary.

astonvictor made their first commit to this issue’s fork.

astonvictor’s picture

Version: 8.x-1.9 » 8.x-1.x-dev

  • astonvictor committed 4046589e on 8.x-1.x
    Issue #3339589 - Remove read time from view displays
    
astonvictor’s picture

Status: Active » Fixed

Implemented uninstall hook to clear view disaply settings.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.