Put a message on uninstall to explain for the site builders that ebt_image_gallery was uninstalled but the block type wasn't removed automatically

Created on 5 April 2023, over 1 year ago
Updated 6 April 2023, over 1 year ago

Problem/Motivation

Installing the ebt_image_gallery a new block type is created EBT Image Gallery that allow us to add an Image Gallery with GLightbox. It's working fine however if we decide to uninstall the ebt_image_gallery, the Block Type isn't removed by default automatically. It's intentional and really makes sense because if for consistence reasons because the user can have multiple blocks created with this block type and for this reason isn't a good idea to remove that forced. In order to have transparency with site builders and content editors, would be nice to have a message during the uninstall to let them know that the ebt_image_gallery was uninstalled but the block type needs to be removed manually if they want, and provide the path for that

Steps to reproduce

Proposed resolution

  1. Implements a hook_uninstall
  2. Use the Messenger service instead of Drupal::logger
  3. Put a message for the users during the uninstall that the ebt_image_gallery was uninstalled but the block type not
  4. Provide the path to remove that manually if they need

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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

Comments & Activities

Production build 0.71.5 2024