You are here

public function EventDispatcher::resolveCountryCode in Currency 8.3

Gets the current country code.

Return value

string The current country code.

Overrides EventDispatcherInterface::resolveCountryCode

File

src/EventDispatcher.php, line 33

Class

EventDispatcher
Provides a Currency event dispatcher.

Namespace

Drupal\currency

Code

public function resolveCountryCode() {
  $event = new ResolveCountryCode();
  $this->symfonyEventDispatcher
    ->dispatch(CurrencyEvents::RESOLVE_COUNTRY_CODE, $event);
  return $event
    ->getCountryCode();
}