Add support for only enabling on certain bundles

Created on 23 April 2024, 5 months ago
Updated 10 June 2024, 3 months ago

Problem/Motivation

It would be nice to be able to only enable trash on certain bundles. Our use case: we're adding the Trash module to a big existing project for use with specific node types. Integrating trash with all existing node types (mostly changing entity delete hooks and potentially adding restore hooks) would be too much work at this point.

Proposed resolution

Add the option to define enabled bundles per entity type. I realise enabling for specific bundles only works to a certain extent: the deleted field will still be present for bundles where trash is disabled, but those entities wouldn't be sent to the trash. We could add extra access checks to make sure any routes are disabled for disabled bundles.

Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇧🇪Belgium DieterHolvoet Brussels

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024