interface EmailTemplateRendererInterface (View source)

Renders the account emails a preview tool can show; the Application layer owns the templates and their custom overrides.

Methods

array
renderNewAccountEmail(string $username, string $password, string $fullname = '')

No description

array
renderPasswordResetEmail(string $name, string $resetUrl, int $expireMinutes)

No description

array
renderMfaVerificationEmail(string $verificationCode, int $expiresAt, string|null $timezone = null)

No description

bool
hasCustomTemplate(string $template)

Whether an operator-supplied template file overrides the shipped one.

Details

array renderNewAccountEmail(string $username, string $password, string $fullname = '')

No description

Parameters

string $username
string $password
string $fullname

Return Value

array

array renderPasswordResetEmail(string $name, string $resetUrl, int $expireMinutes)

No description

Parameters

string $name
string $resetUrl
int $expireMinutes

Return Value

array

array renderMfaVerificationEmail(string $verificationCode, int $expiresAt, string|null $timezone = null)

No description

Parameters

string $verificationCode
int $expiresAt

Unix timestamp the code stops being accepted

string|null $timezone

IANA timezone the expiry is shown in, or the configured default

Return Value

array

bool hasCustomTemplate(string $template)

Whether an operator-supplied template file overrides the shipped one.

Parameters

string $template

Return Value

bool