public function CurrencyExchange::__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\StringTranslation\TranslationInterface: The string translator.
\Drupal\currency\Plugin\Currency\ExchangeRateProvider\ExchangeRateProviderInterface $exchange_rate_provider: The exchange rate provider.
\Commercie\Currency\InputInterface $input: The input parser.
Overrides FilterBase::__construct
File
- src/
Plugin/ Filter/ CurrencyExchange.php, line 62
Class
- CurrencyExchange
- Provides a filter to exchange currencies.
Namespace
Drupal\currency\Plugin\FilterCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation, ExchangeRateProviderInterface $exchange_rate_provider, InputInterface $input) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->exchangeRateProvider = $exchange_rate_provider;
$this->input = $input;
$this->stringTranslation = $string_translation;
}