/**
* @param array<string, mixed> $data
*/
public function loadFromArray(Context
$context, array
$data, ?string
$locale = null
): ExtensionStruct
{ if ($locale === null
) { $locale =
$this->localeProvider->
getLocaleFromContext($context);
} $localeWithUnderscore =
str_replace('-', '_',
$locale);
$data =
$this->
prepareArrayData($data,
$localeWithUnderscore);
return ExtensionStruct::
fromArray($data);
} /**
* @param array<array<string, mixed>> $data
*/
public function loadFromListingArray(Context
$context, array
$data): ExtensionCollection
{ $locale =
$this->localeProvider->
getLocaleFromContext($context);
$localeWithUnderscore =
str_replace('-', '_',
$locale);