You are here

public static function Store::getAvailableCountries in Commerce Core 8.2

Gets the allowed values for the 'billing_countries' base field.

Return value

array The allowed values.

File

modules/store/src/Entity/Store.php, line 424

Class

Store
Defines the store entity class.

Namespace

Drupal\commerce_store\Entity

Code

public static function getAvailableCountries() {
  return \Drupal::service('address.country_repository')
    ->getList();
}