You are here

public static function GreatBritainEventSubscriber::getSubscribedEvents in Address 8

File

tests/modules/address_test/src/EventSubscriber/GreatBritainEventSubscriber.php, line 22

Class

GreatBritainEventSubscriber
Adds a county field and a predefined list of counties for Great Britain.

Namespace

Drupal\address_test\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[AddressEvents::ADDRESS_FORMAT][] = [
    'onAddressFormat',
  ];
  $events[AddressEvents::SUBDIVISIONS][] = [
    'onSubdivisions',
  ];
  return $events;
}