You are here

public function CommerceCurrencyResolverMapping::__construct in Commerce Currency Resolver 8

Constructs a CommerceCurrencyResolverMapping object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Locale\CountryManagerInterface $country_manager: The country manager.

\Drupal\commerce_currency_resolver\CurrencyHelperInterface $currencyHelper: Currency helper.

Overrides ConfigFormBase::__construct

File

src/Form/CommerceCurrencyResolverMapping.php, line 43

Class

CommerceCurrencyResolverMapping
Class CommerceCurrencyResolverMapping.

Namespace

Drupal\commerce_currency_resolver\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, CountryManagerInterface $country_manager, CurrencyHelperInterface $currencyHelper) {
  parent::__construct($config_factory);
  $this->countryManager = $country_manager;
  $this->currencyHelper = $currencyHelper;
}