You are here

public function FixedRates::__construct in Currency 8.3

Constructs a new class instance

Parameters

mixed[] $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed[] $plugin_definition: The plugin implementation definition.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

Overrides PluginBase::__construct

File

src/Plugin/Currency/ExchangeRateProvider/FixedRates.php, line 43

Class

FixedRates
Provides manually entered exchange rates.

Namespace

Drupal\currency\Plugin\Currency\ExchangeRateProvider

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, ConfigFactoryInterface $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $config_factory;
}