src/Backend/Modules/Commerce/Domain/Order/Mailer/Message.php
/**
     * Parses a TwigTemplate with the wanted variables.
     */
Parses a TwigTemplate with the wanted variables.
Parses a TwigTemplate with the wanted variables .
public function parseHtml(string $template, array $variables, bool $addUTM = false): self
    {
        $html = $this->getTemplateContent($template, $variables);
        $html = $this->relativeToAbsolute($html);
        $html = $this->cssToInlineStyles($html);
        if ($addUTM === true) {
            $html = $this->addUTM($html, $this->getSubject());
        }
        $this->setBody($html, 'text/html');
        return $this;
    }
public function parseHtml ( string $ template , array $ variables , bool $ addUTM = false ) : self { $ html = $ this -> getTemplateContent ( $ template , $ variables ) ; $ html = $ this -> relativeToAbsolute ( $ html ) ; $ html = $ this -> cssToInlineStyles ( $ html ) ; if ( $ addUTM === true ) { $ html = $ this -> addUTM ( $ html , $ this -> getSubject ( ) ) ; } $ this -> setBody ( $ html , 'text/html' ) ; return $ this ; }
Parses a TwigTemplate with the wanted variables.
Parses a TwigTemplate with the wanted variables .