public function setTemplateDir($template_dir) { $template_dir =
(array) $template_dir;
foreach ($template_dir as $k =>
$v) { $template_dir[$k] =
$this->
resolveTemplateDir($v,
$k);
if ($template_dir[$k] === false
) { unset($template_dir[$k]);
} } // Filter all directories which includes the new shopware themes
$themeDirectories =
array_filter($template_dir,
static function D
$themeDir) { return (bool) stripos($themeDir, '/Themes/Frontend/'
);
});
// If no shopware theme assigned, we have to use the passed inheritance