if (!
$pluginConfig) { throw new InvalidThemeException($themeId);
} $pluginConfig =
clone $pluginConfig;
$config =
$this->
loadCompileConfig($themeId,
$context);
$pluginConfig->
setThemeConfig($config);
$this->
resolveMediaIds($pluginConfig,
$context);
return $pluginConfig;
} /**
* @return array<string, mixed>
*/
private function loadCompileConfig(string
$themeId, Context
$context): array
{ $config =
$this->
loadRecursiveConfig($themeId,
$context);