You are here

public function DeliveryCountryCondition::countryOptions in Ubercart 8.4

Returns an array of country options.

Return value

array An array of 2-character country codes keyed by country name.

File

uc_order/src/Plugin/Condition/DeliveryCountryCondition.php, line 83

Class

DeliveryCountryCondition
Provides an 'Order delivery country' condition.

Namespace

Drupal\uc_order\Plugin\Condition

Code

public function countryOptions() {
  return $this->countryManager
    ->getEnabledList();
}