Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
See #2725447: WI: Phase D: Enable archive/purge storage
Proposed resolution
- Add a new
purge
method to\Drupal\Core\Entity\EntityStorageInterface
- Deprecate the
delete
method in favour ofpurge
in\Drupal\Core\Entity\EntityStorageInterface
- Deprecate
hook_entity_delete()
- Invoke both
hook_entity_purge()
andhook_entity_delete
(for BC) in thepurge
method
This is a child issue of #2725463: WI: Add StatusItem field type to store archived state where we're adding the archive base field definition to all revisionable entities, adding the setArchived()
and isArchived()
methods, and adding to buildQuery()
to only return non-archived entities.
Comments