AccountAnonymizationManager
in package
implements
AccountAnonymizationStepInterface
FinalYes
Blog share of anonymizing a deleted account: messages of the discussion under articles (`cms_mod_blog_article_discussion_messages`) stay, but the author name and e-mail copied into them at posting time are replaced — "Deleted user" and NULL.
Deliberately nothing else of the Blog module (user's decision 3. 10. 2026): the guestbook,
contact messages and the author text of articles stay unchanged. The fulltext index of the
articles does not carry the discussion, so no reindex.
Table of Contents
Interfaces
- AccountAnonymizationStepInterface
- One module's share of anonymizing a deleted account.
Properties
Methods
- __construct() : mixed
- anonymizeUser() : array<string, int>
Properties
$messageManager read-only
private
ArticleDiscussionMessageManager
$messageManager
Methods
__construct()
public
__construct(ArticleDiscussionMessageManager $messageManager) : mixed
Parameters
- $messageManager : ArticleDiscussionMessageManager
anonymizeUser()
public
anonymizeUser(int $userId, string $originalEmail, string $deletedLabel) : array<string, int>
Parameters
- $userId : int
- $originalEmail : string
-
e-mail of the account before anonymization ('' = none)
- $deletedLabel : string
-
translated "Deleted user" written over copied author names
Return values
array<string, int> —what was changed, for the audit log (e.g. bazaarAdvertsDeactivated => 2)