class MailFormatter

The formatter email views are given.

Renders through the real formatter, then puts back the values {\Flarum\Mail\MailTranslator} held out of the way, escaped. Content that never went through the mail translator — a post's body via `formatContent()`, for instance — is unaffected, since it carries no markers. Not a subclass: email views only ever call `convert()`, and wrapping avoids inheriting the parser and renderer state the real formatter manages.

Methods

__construct(Formatter $formatter)

No description

string
convert(string|null $content)

No description

mixed
__call(string $method, array $arguments)

Anything else an email view might reach for goes to the real formatter.

Details

__construct(Formatter $formatter)

Parameters

Formatter $formatter

string convert(string|null $content)

Parameters

string|null $content

Return Value

string

mixed __call(string $method, array $arguments)

Anything else an email view might reach for goes to the real formatter.

Parameters

string $method
array $arguments

Return Value

mixed