public function ExchangeRateProviderDecorator::__construct in Currency 8.3
Constructs a new instance.
Parameters
array $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.
\Commercie\CurrencyExchange\ExchangeRateProviderInterface: The decorated exchange rate provider.
Overrides PluginBase::__construct
1 call to ExchangeRateProviderDecorator::__construct()
- HistoricalRates::__construct in src/
Plugin/ Currency/ ExchangeRateProvider/ HistoricalRates.php - Constructs a new instance.
1 method overrides ExchangeRateProviderDecorator::__construct()
- HistoricalRates::__construct in src/
Plugin/ Currency/ ExchangeRateProvider/ HistoricalRates.php - Constructs a new instance.
File
- src/
Plugin/ Currency/ ExchangeRateProvider/ ExchangeRateProviderDecorator.php, line 33
Class
- ExchangeRateProviderDecorator
- Provides an exchange rate provider decorator.
Namespace
Drupal\currency\Plugin\Currency\ExchangeRateProviderCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, GenericExchangeRateProviderInterface $exchange_rate_provider) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->exchangeRateProvider = $exchange_rate_provider;
}