Neos\FluidAdaptor\View\TemplatePaths::getTemplateRootPaths PHP Method

getTemplateRootPaths() public method

Resolves the template root to be used inside other paths.
public getTemplateRootPaths ( ) : array
return array Path(s) to template root directory
    public function getTemplateRootPaths()
    {
        if ($this->templateRootPaths !== []) {
            return $this->templateRootPaths;
        }
        if ($this->templateRootPathPattern === null) {
            return [];
        }
        $templateRootPath = $this->templateRootPathPattern;
        if (isset($this->patternReplacementVariables['packageKey'])) {
            $templateRootPath = str_replace('@packageResourcesPath', 'resource://' . $this->patternReplacementVariables['packageKey'], $templateRootPath);
        }
        return [$templateRootPath];
    }