You are here

protected function CurrencyLocale::getCountryManager in Currency 8.3

Gets the country manager.

Return value

\Drupal\Core\Locale\CountryManagerInterface

File

src/Entity/CurrencyLocale.php, line 217

Class

CurrencyLocale
Defines a currency locale entity.

Namespace

Drupal\currency\Entity

Code

protected function getCountryManager() {
  if (!$this->countryManager) {
    $this->countryManager = \Drupal::service('country_manager');
  }
  return $this->countryManager;
}