src/User/EmailConfirmationMailer.php
protected function getEmailData(User $user, $email)
    {
        $token = $this->generateToken($user, $email);

        return [
            '{username}' => $user->display_name,
            '{url}' => $this->url->to('forum')->route('confirmEmail', ['token' => $token->token]),
            '{forum}' => $this->settings->get('forum_title')
        ];
    }
protected function getEmailData(User $user, $email)
    {
        $token = $this->generateToken($user, $email);

        return [
            '{username}' => $user->display_name,
            '{url}' => $this->url->to('forum')->route('confirmEmail', ['token' => $token->token]),
            '{forum}' => $this->settings->get('forum_title')
        ];
    }
protected function getEmailData ( User $ user , $ email ) { $ token = $ this -> generateToken ( $ user , $ email ) ; return [ '{username}' => $ user -> display_name , '{url}' => $ this -> url -> to ( 'forum' ) -> route ( 'confirmEmail' , [ 'token' => $ token -> token ] ) , '{forum}' => $ this -> settings -> get ( 'forum_title' ) ] ; }
Get the data that should be made available to email templates.

@param User $user
@param string $email
@return array
Get the data that should be made available to email templates .