class NotificationMailer

Methods

__construct(Mailer $mailer, TranslatorInterface $translator, SettingsRepositoryInterface $settings, UrlGenerator $url, Factory $view)

No description

void
send(MailableInterface|BlueprintInterface $blueprint, User $user)

No description

generateUnsubscribeToken(int $userId, string $emailType)

No description

array
getEmailViews(MailableInterface|BlueprintInterface $blueprint)

Retrieves the email views from the blueprint, and enforces that both a plain text and HTML view are provided.

Details

__construct(Mailer $mailer, TranslatorInterface $translator, SettingsRepositoryInterface $settings, UrlGenerator $url, Factory $view)

Parameters

Mailer $mailer
TranslatorInterface $translator
SettingsRepositoryInterface $settings
UrlGenerator $url
Factory $view

void send(MailableInterface|BlueprintInterface $blueprint, User $user)

Parameters

MailableInterface|BlueprintInterface $blueprint
User $user

Return Value

void

protected UnsubscribeToken generateUnsubscribeToken(int $userId, string $emailType)

Parameters

int $userId
string $emailType

Return Value

UnsubscribeToken

protected array getEmailViews(MailableInterface|BlueprintInterface $blueprint)

Retrieves the email views from the blueprint, and enforces that both a plain text and HTML view are provided.

Parameters

MailableInterface|BlueprintInterface $blueprint

Return Value

array