FluidTYPO3\Flux\View\TemplatePaths::fillFromTypoScriptArray PHP Метод

fillFromTypoScriptArray() публичный Метод

- plugin.tx_yourext.view.templateRootPath and siblings. - plugin.tx_yourext.view.templateRootPaths and siblings. - plugin.tx_yourext.view.overlays.otherextension.templateRootPath and siblings. The paths are treated as follows, using the template-type paths as an example: - If templateRootPath is defined, it gets used as the _first_ path in the internal paths array. - If templateRootPaths is defined, all values from it are _appended_ to the internal paths array. - If overlays.* exists in the array it is iterated, each templateRootPath entry from it _appended_ to the internal array. The result is that after filling, the path arrays will contain one or more entries in the order described above, depending on how many of the possible configurations were present in the input array. Will replace any currently configured paths.
public fillFromTypoScriptArray ( array $paths ) : void
$paths array
Результат void
    public function fillFromTypoScriptArray(array $paths)
    {
        list($templateRootPaths, $layoutRootPaths, $partialRootPaths) = $this->extractPathArrays($paths);
        $this->setTemplateRootPaths($templateRootPaths);
        $this->setLayoutRootPaths($layoutRootPaths);
        $this->setPartialRootPaths($partialRootPaths);
    }