Flarum\Core\Notification\MailableInterface::getEmailView PHP Method

getEmailView() public method

Get the name of the view to construct a notification email with.
public getEmailView ( ) : string
return string
    public function getEmailView();

Usage Example

Beispiel #1
0
 /**
  * @param MailableInterface $blueprint
  * @param User $user
  */
 public function send(MailableInterface $blueprint, User $user)
 {
     $this->mailer->send($blueprint->getEmailView(), compact('blueprint', 'user'), function (Message $message) use($blueprint, $user) {
         $message->to($user->email, $user->username)->subject($blueprint->getEmailSubject());
     });
 }