Remove views_ajax_history display_extender plugin from view configuration on uninstall

Created on 12 July 2023, over 1 year ago
Updated 6 August 2023, over 1 year ago

Problem/Motivation

If you uninstall the module, the display_extenders plugin is removed from the main view.settings.yml configuration file but stays in all the views where it was used. This result in a broken site, unless every references are removed manually from the config before uninstalling the module.

Steps to reproduce

Install Drupal with the module views_ajax_history. Enable it on some of the views.
Uninstall the module.
Try to open your website, it will prompt you an error.

Proposed resolution

I suggest to iterate through all views in the uninstall hook and remove the setting when it applies.
See patch attached.
Please see also global issue on this subject, recommanding to do the same:
https://www.drupal.org/project/drupal/issues/2635728 β†’

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France GuillaumePacilly

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024