Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The code uses hook_user_delete(). This hook has changed in Drupal 8.
Comment | File | Size | Author |
---|---|---|---|
#4 | drupal-delete_consumers_when_user_deleted-2615772-4-D8.patch | 2.23 KB | Sagar Ramgade |
#2 | drupal-delete_consumers_when_user_deleted-2615772-2-D8.patch | 1.25 KB | Sagar Ramgade |
Comments
Comment #2
Sagar Ramgade CreditAttribution: Sagar Ramgade as a volunteer commentedYes, patch attached implements the hook_ENTITY_TYPE_delete().
Comment #3
juampynr CreditAttribution: juampynr as a volunteer commentedLooks good. Mind adding test coverage for this? The tests already create a user so it would be a matter of deleting it and then checking that the set of consumers are gone.
Comment #4
Sagar Ramgade CreditAttribution: Sagar Ramgade as a volunteer commentedPatch with tests, Looks good?
Comment #6
juampynr CreditAttribution: juampynr as a volunteer commentedNot really, I made my own implementation because:
* There were a few legacy statements related with tables from the Drupal 7 version that don't exist in the 8 one.
* The tests's assertion was not passing.
Thanks anyway!