Implement hook_user_cancel

Created on 24 July 2025, 12 days ago

Problem/Motivation

As noted in πŸ› getOwner(): Return value must be of type Drupal\user\UserInterface, null returned Active , it is possible for alerts to be associated with non-existent users.

Steps to reproduce

1. Create a sitewide alert
2. Cancel the account of the user who created it
3. As a different user, edit that alert

Proposed resolution

Implement hook_user_cancel to update alerts when their owner is cancelled.

Remaining tasks

Do it

User interface changes

None

API changes

None

Data model changes

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom malcomio

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

Comments & Activities

Production build 0.71.5 2024