protected function createView(string $view, array $data): string
    {
        if ($this->viewFactory !== null) {
            return $this->viewFactory->create($view, $data)->render();
        }

        return \vsprintf($view, $data);
    }
protected function createView(string $view, array $data): string
    {
        if ($this->viewFactory !== null) {
            return $this->viewFactory->create($view, $data)->render();
        }

        return \vsprintf($view, $data);
    }
protected function createView ( string $ view , array $ data ) : string { if ( $ this -> viewFactory !== null ) { return $ this -> viewFactory -> create ( $ view , $ data ) -> render ( ) ; } return \ vsprintf ( $ view , $ data ) ; }
Creates a view string for the email body.

@param string $view
@param array  $data

@return string
Creates a view string for the email body .