FluidTYPO3\Vhs\ViewHelpers\Render\TemplateViewHelper::render PHP Méthode

render() public méthode

public render ( ) : string
Résultat string
    public function render()
    {
        $file = $this->arguments['file'];
        if (null === $file) {
            $file = $this->renderChildren();
        }
        $file = GeneralUtility::getFileAbsFileName($file);
        $view = $this->getPreparedView();
        $view->setTemplatePathAndFilename($file);
        if (is_array($this->arguments['variables'])) {
            $view->assignMultiple($this->arguments['variables']);
        }
        $format = $this->arguments['format'];
        if (null !== $format) {
            $view->setFormat($format);
        }
        $paths = $this->arguments['paths'];
        if (is_array($paths)) {
            if (isset($paths['layoutRootPaths']) && is_array($paths['layoutRootPaths'])) {
                $layoutRootPaths = $this->processPathsArray($paths['layoutRootPaths']);
                $view->setLayoutRootPaths($layoutRootPaths);
            }
            if (isset($paths['partialRootPaths']) && is_array($paths['partialRootPaths'])) {
                $partialRootPaths = $this->processPathsArray($paths['partialRootPaths']);
                $view->setPartialRootPaths($partialRootPaths);
            }
        }
        return $this->renderView($view);
    }