You are here

public function ExchangeRatesForm::__construct in Commerce Exchanger 8

Constructs a new ExchangeRatesForm object.

Parameters

\Drupal\commerce_exchanger\ExchangerProviderManager $plugin_manager: The exchange rates plugin manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Currency storage.

\Drupal\Core\Config\ConfigFactory $config_factory: Configuration managment.

File

src/Form/ExchangeRatesForm.php, line 50

Class

ExchangeRatesForm
Class ExchangeRateForm.

Namespace

Drupal\commerce_exchanger\Form

Code

public function __construct(ExchangerProviderManager $plugin_manager, EntityTypeManagerInterface $entity_type_manager, ConfigFactory $config_factory) {
  $this->pluginManager = $plugin_manager;
  $this->currencyStorage = $entity_type_manager
    ->getStorage('commerce_currency');
  $this->configFactory = $config_factory;
}