You are here

public function AddressTestEventSubscriber::getAvailableCountries in Address 8

Generates a set of available countries.

Return value

array The countries.

1 call to AddressTestEventSubscriber::getAvailableCountries()
AddressTestEventSubscriber::onAvailableCountries in tests/modules/address_test/src/EventSubscriber/AddressTestEventSubscriber.php
Alters the available countries.

File

tests/modules/address_test/src/EventSubscriber/AddressTestEventSubscriber.php, line 40

Class

AddressTestEventSubscriber
Subscribes to Address events for testing.

Namespace

Drupal\address_test\EventSubscriber

Code

public function getAvailableCountries() {
  return [
    'AU' => 'AU',
    'BR' => 'BR',
    'CA' => 'CA',
    'GB' => 'GB',
    'US' => 'US',
  ];
}