- πΊπΈUnited States smustgrave
The referenced issue #2725447: WI: Phase D: Enable archive/purge storage β seems to have stalled. Feel this issue needs more discussion.
There is no (easy) way for modules to prevent an entity deletion from going through. Modules that want to implement a soft-delete functionality (like Multiversion) have to override the storage class for every entity type to achieve this.
Add a EntityStorageInterface::ENTITY_SOFT_DELETE
constant/flag, which can be returned by hook_entity_predelete()
implementations and will make the storage keep the database records.
This would help very much with a (re-)implementation of the soft-delete functionality in the Trash module, which is proposed for core inclusion: #2786135: WI: Phase E: Introduce Trash module β .
- discuss/agree on the proposal
- write test coverage
Nope.
Nope.
hook_entity_predelete()
implementations can now return EntityStorageInterface::ENTITY_SOFT_DELETE
which will inform the storage to not delete the actual records from the database.
TBD.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
The referenced issue #2725447: WI: Phase D: Enable archive/purge storage β seems to have stalled. Feel this issue needs more discussion.