You are here

public function CurrencyHelper::getGeoModules in Commerce Currency Resolver 8

Get list of enabled geo modules if any.

Return value

array List of geo modules.

Overrides CurrencyHelperInterface::getGeoModules

File

src/CurrencyHelper.php, line 152

Class

CurrencyHelper
Helper for various parts of the module.

Namespace

Drupal\commerce_currency_resolver

Code

public function getGeoModules() {
  $geo = [];
  if ($this->moduleHandler
    ->moduleExists('smart_ip')) {
    $geo['smart_ip'] = $this
      ->t('Smart IP');
  }
  if ($this->moduleHandler
    ->moduleExists('geoip')) {
    $geo['geoip'] = $this
      ->t('GeoIP');
  }
  return $geo;
}