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];
    }
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];
    }
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 ] ; }
Resolves the template root to be used inside other paths.

@return array Path(s) to template root directory
Resolves the template root to be used inside other paths .