Problem/Motivation
The default SwiperFormatter config entity can be deleted by navigating directly to /admin/config/content/swiper-formatter/default/delete. The user is presented with a confirmation form and can proceed to delete it.
This entity is critical to the module's functionality — it serves as the source of default values for newly created entities. Deleting it breaks entity creation and can cause fatal errors throughout the module.
There is currently no access restriction preventing deletion of the default entity.
Steps to reproduce
- Log in as a user with the
administer swiper_formatterpermission - Navigate to
/admin/config/content/swiper-formatter/default/delete - Confirm the deletion
- The default entity is deleted and entity pages break
Proposed resolution
Implement a custom access handler that denies delete access for the default entity.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork swiper_formatter-3574709
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 #5
bbu23Will be available in 2.1.0