src/writer/EmailWriter.php
public function visitEmail(EmailInterface $email)
    {
        $template = "email/{$email->getType()}.twig";

        return $this
            ->loadTemplate($template)
            ->render(
                [
                    "id" => $email->getId(),
                    "classes" => $email->getClasses(),
                    "data" => $email->getData(),
                    "message" => $email->getMessage(),
                ]
            );
    }
public function visitEmail(EmailInterface $email)
    {
        $template = "email/{$email->getType()}.twig";

        return $this
            ->loadTemplate($template)
            ->render(
                [
                    "id" => $email->getId(),
                    "classes" => $email->getClasses(),
                    "data" => $email->getData(),
                    "message" => $email->getMessage(),
                ]
            );
    }
public function visitEmail ( EmailInterface $ email ) { $ template = "email/{$email->getType()}.twig" ; return $ this -> loadTemplate ( $ template ) -> render ( [ "id" => $ email -> getId ( ) , "classes" => $ email -> getClasses ( ) , "data" => $ email -> getData ( ) , "message" => $ email -> getMessage ( ) , ] ) ; }
Render an email message into an email body, given its template.

@param EmailInterface $email
@return string
Render an email message into an email body given its template .