public function getLayoutRootPaths()
{
if ($this->layoutRootPaths !== []) {
return $this->layoutRootPaths;
}
if ($this->layoutRootPathPattern === null) {
return [];
}
$layoutRootPath = $this->layoutRootPathPattern;
if (isset($this->patternReplacementVariables['packageKey'])) {
$layoutRootPath = str_replace('@packageResourcesPath', 'resource://' . $this->patternReplacementVariables['packageKey'], $layoutRootPath);
}
return [$layoutRootPath];
}