Я получаю код страны из таблицы field_data_commerce_customer_address
в drupal commerce. Теперь, как получить полное название страны из этого кода.
Как получить название страны из кода страны в Drupal Commerce
Ответы (1)
Вы можете использовать drupal cores country manager следующим образом:
$country_list = \Drupal::getContainer()->get('country_manager')->getList();
$country_name = $country_list[$country_code]->render();
person
LouisCuny
schedule
22.02.2019