Common\Mailer\Message::parseHtml PHP Method

parseHtml() public method

Parses a TwigTemplate with the wanted variables
public parseHtml ( string $template, array $variables, boolean $addUTM = false ) : Message
$template string
$variables array
$addUTM boolean
return Message
    public function parseHtml($template, $variables, $addUTM = false)
    {
        $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;
    }