public function Store::getBillingCountries in Commerce Core 8.2
Gets the store billing countries.
If empty, it's assumed that all countries are supported.
Return value
array A list of country codes.
Overrides StoreInterface::getBillingCountries
File
- modules/
store/ src/ Entity/ Store.php, line 182
Class
- Store
- Defines the store entity class.
Namespace
Drupal\commerce_store\EntityCode
public function getBillingCountries() {
$countries = [];
foreach ($this
->get('billing_countries') as $countryItem) {
$countries[] = $countryItem->value;
}
return $countries;
}