/** * Helper function which returns all smarty directories for the * passed templates. * The function returns an array with all smarty directories * for the inheritance of the passed template. * * @param \Shopware\Models\Shop\Template $template * @return array */ private function getSmartyDirectoriesRecursive(Shop\Template $template) { $directories = array($this->pathResolver->getSmartyDirectory($template)); if ($template->getParent() instanceof Shop\Template) { $directories = array_merge($directories, $this->getSmartyDirectoriesRecursive($template->getParent())); } return $directories; }