public function AddressTestEventSubscriber::onAvailableCountries in Address 8
Alters the available countries.
Parameters
\Drupal\address\Event\AvailableCountriesEvent $event: The available countries event.
File
- tests/
modules/ address_test/ src/ EventSubscriber/ AddressTestEventSubscriber.php, line 30
Class
- AddressTestEventSubscriber
- Subscribes to Address events for testing.
Namespace
Drupal\address_test\EventSubscriberCode
public function onAvailableCountries(AvailableCountriesEvent $event) {
$event
->setAvailableCountries($this
->getAvailableCountries());
}