AccountAnonymizationManager
in package
implements
AccountAnonymizationStepInterface
FinalYes
Discussion share of anonymizing a deleted account: posts stay, but the author name and e-mail copied into them at posting time are replaced — the lists print the copy directly. The fulltext index does not carry the author, 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
MessageManager
$messageManager
Methods
__construct()
public
__construct(MessageManager $messageManager) : mixed
Parameters
- $messageManager : MessageManager
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)