public function FixedRatesForm::__construct in Currency 8.3
Constructs a new instance.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translator.
\Drupal\Core\Entity\EntityStorageInterface $currency_storage: The currency storage.
\Drupal\currency\Plugin\Currency\ExchangeRateProvider\ExchangeRateProviderManagerInterface $currency_exchange_rate_provider_manager: The currency exchange rate provider plugin manager.
\Drupal\currency\FormHelperInterface: The form helper.
File
- src/
Form/ FixedRatesForm.php, line 56
Class
- FixedRatesForm
- Provides the configuration form for the currency_fixed_rates plugin.
Namespace
Drupal\currency\FormCode
public function __construct(ConfigFactoryInterface $configFactory, TranslationInterface $string_translation, EntityStorageInterface $currency_storage, ExchangeRateProviderManagerInterface $currency_exchange_rate_provider_manager, FormHelperInterface $form_helper) {
$this
->setConfigFactory($configFactory);
$this->currencyStorage = $currency_storage;
$this->currencyExchangeRateProviderManager = $currency_exchange_rate_provider_manager;
$this->formHelper = $form_helper;
$this->stringTranslation = $string_translation;
}