$this->eventManager =
$eventManager;
$this->mediaService =
$mediaService;
} /**
* @throws Exception
*
* @return array
*/
public function buildInheritances(Template
$template) { $hierarchy =
$this->
buildInheritanceRecursive($template);
$util =
$this->util;
$bare =
array_filter($hierarchy,
function DTemplate
$template) use ($util) { $theme =
$util->
getThemeByTemplate($template);
return $theme->
injectBeforePlugins();
});
$custom =
array_filter($hierarchy,
function DTemplate
$template) use ($util) { $theme =
$util->
getThemeByTemplate($template);