/**
* Get list of currently active countries. Includes states and translations
*
* @return array<int, array<string, mixed>> Country list, indexed by ID
*/
public function sGetCountryList() { $context =
Shopware()->
Container()->
get('shopware_storefront.context_service'
)->
getShopContext();
$service =
Shopware()->
Container()->
get('shopware_storefront.location_service'
);
$countryList =
$service->
getCountries($context);
$countryList =
Shopware()->
Container()->
get('legacy_struct_converter'
)->
convertCountryStructList($countryList);
$countryList =
array_map(function D
$country) { $request =
$this->front->
Request();
$countryId =
(int) $country['id'
];
$country['flag'
] =
(int) $request->
getPost('country'
) ===
$countryId ||
(int) $request->
getPost('countryID'
) ===
$countryId;
return $country;
},
$countryList);
return $this->eventManager->
filter( 'Shopware_Modules_Admin_GetCountries_FilterResult',