/**
* @return array<string, mixed>
*/
private function updateMediaInConfiguration( ?ThemeEntity
$theme,
StorefrontPluginConfiguration
$pluginConfiguration,
Context
$context ): array
{ $media =
[];
$themeData =
[];
$themeFolderId =
$this->
getMediaDefaultFolderId($context);
$installedConfiguration = null;
if ($theme && \
is_array($theme->
getThemeJson()) &&
$this->pluginConfigurationFactory
) { $installedConfiguration =
$this->pluginConfigurationFactory->
createFromThemeJson( $theme->
getTechnicalName() ?? 'childTheme',
$theme->
getThemeJson(),
$pluginConfiguration->
getBasePath(),
false
);
}