Model/Template/Processor.php
public function processTemplate()
    {
        // Support theme fallback for email templates
        $isDesignApplied = $this->applyDesignConfig();

        $processor = $this->getTemplateFilter()
            ->setUseSessionInUrl(false)
            ->setPlainTemplateMode($this->isPlain())
            ->setIsChildTemplate($this->isChildTemplate())
            ->setTemplateProcessor([$this, 'getTemplateContent']);

        $processor->setVariables($this->getVariables());
        $this->setUseAbsoluteLinks(true);
        $html = $this->html($processor);

        if ($isDesignApplied) {
            $this->cancelDesignConfig();
        }

        return $html;
    }
public function processTemplate()
    {
        // Support theme fallback for email templates
        $isDesignApplied = $this->applyDesignConfig();

        $processor = $this->getTemplateFilter()
            ->setUseSessionInUrl(false)
            ->setPlainTemplateMode($this->isPlain())
            ->setIsChildTemplate($this->isChildTemplate())
            ->setTemplateProcessor([$this, 'getTemplateContent']);

        $processor->setVariables($this->getVariables());
        $this->setUseAbsoluteLinks(true);
        $html = $this->html($processor);

        if ($isDesignApplied) {
            $this->cancelDesignConfig();
        }

        return $html;
    }
public function processTemplate ( ) { // Support theme fallback for email templates $ isDesignApplied = $ this -> applyDesignConfig ( ) ; $ processor = $ this -> getTemplateFilter ( ) -> setUseSessionInUrl ( false ) -> setPlainTemplateMode ( $ this -> isPlain ( ) ) -> setIsChildTemplate ( $ this -> isChildTemplate ( ) ) -> setTemplateProcessor ( [ $ this , 'getTemplateContent' ] ) ; $ processor -> setVariables ( $ this -> getVariables ( ) ) ; $ this -> setUseAbsoluteLinks ( true ) ; $ html = $ this -> html ( $ processor ) ; if ( $ isDesignApplied ) { $ this -> cancelDesignConfig ( ) ; } return $ html ; }
Get processed template

@return string
@throws \Magento\Framework\Exception\MailException
Get processed template