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];
}