Uses a country label from the static list returned by getStandardList() in group__small_teaser

Created on 7 November 2024, 8 days ago

Problem/Motivation

Uses a country label from the getStandardList() to display group country as result will be displayed a static default country name, even if the related service is overridden it will use an "old" country label

Proposed resolution

Replace:
$countries = CountryManager::getStandardList();
with:
$countries = \Drupal::service('address.country_repository')->getList();

So, the country name will be set/displayed correctly

πŸ› Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine SV

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024