public function viewController()
    {
        $templateIdent = $this->templateIdent();

        if (!$templateIdent) {
            return [];
        }

        $templateFactory = clone($this->templateFactory());
        $templateFactory->setDefaultClass(GenericEmailTemplate::class);
        $template = $templateFactory->create($templateIdent);

        $template->setData($this->templateData());

        return $template;
    }
public function viewController()
    {
        $templateIdent = $this->templateIdent();

        if (!$templateIdent) {
            return [];
        }

        $templateFactory = clone($this->templateFactory());
        $templateFactory->setDefaultClass(GenericEmailTemplate::class);
        $template = $templateFactory->create($templateIdent);

        $template->setData($this->templateData());

        return $template;
    }
public function viewController ( ) { $ templateIdent = $ this -> templateIdent ( ) ; if ( ! $ templateIdent ) { return [ ] ; } $ templateFactory = clone ( $ this -> templateFactory ( ) ) ; $ templateFactory -> setDefaultClass ( GenericEmailTemplate :: class ) ; $ template = $ templateFactory -> create ( $ templateIdent ) ; $ template -> setData ( $ this -> templateData ( ) ) ; return $ template ; }
Get the custom view controller for rendering
the email's HTML message.

Unlike typical `ViewableInterface` objects, the view controller is not
the email itself but an external "email" template.

@see    ViewableInterface::viewController()
@return \Charcoal\App\Template\TemplateInterface|array
Get the custom view controller for rendering the email s HTML message .