$default =
[ // ensure storefront to be first
'@Storefront' =>
[],
];
foreach ($names as $name) { $name = '@' .
$name;
$default[$name] =
[];
} $default =
$this->
injectPluginWildcard($default);
$themeConfig =
$this->themeRegistry
->
getConfigurations() ->
getByTechnicalName($theme);
if (!
$themeConfig) { return $default;
} $inheritance =
$themeConfig->
getViewInheritance();