API / Minn\Mail / ChangeNotices

ChangeNotices final class

Minn\Mail\ChangeNotices · public/minn/src/Minn/Mail/ChangeNotices.php · 30 lines

The notices the reference mails a user when their password or email address changes, as templates: plugins filter them (password_change_email, email_change_email) with the placeholders still in them and the site name still a %s in the subject, and fill() finishes them after.

Public

staticpassword(): array#

The password notice: subject and message, placeholders unfilled. @return array{subject: string, message: string}

@return array{subject: string, message: string}
staticemail(): array#

The email-address notice, sent to the address being left: subject and message, placeholders unfilled. @return array{subject: string, message: string}

@return array{subject: string, message: string}
staticfill(string $text, array $values): string#

A template's placeholders filled with their values. @param array<string, string> $values placeholder name (USERNAME, ...) => value

$valuesarray<string, string>placeholder name (USERNAME, ...) => value