public function FixedRatesOverview::__construct in Currency 8.3
Constructs a new instance.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $translation_manager: The translation manager.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator.
\Drupal\Core\Entity\EntityStorageInterface $currency_storage: The currency storage.
\Drupal\currency\Plugin\Currency\AmountFormatter\AmountFormatterManagerInterface $currency_amount_formatter_manager: The currency locale delegator.
\Drupal\currency\Plugin\Currency\ExchangeRateProvider\ExchangeRateProviderManagerInterface $currency_exchange_rate_provider_manager: The currency exchanger plugin manager.
File
- src/
Controller/ FixedRatesOverview.php, line 61
Class
- FixedRatesOverview
- Provides the overview of fixed exchange rates.
Namespace
Drupal\currency\ControllerCode
public function __construct(TranslationInterface $translation_manager, UrlGeneratorInterface $url_generator, EntityStorageInterface $currency_storage, AmountFormatterManagerInterface $currency_amount_formatter_manager, ExchangeRateProviderManagerInterface $currency_exchange_rate_provider_manager) {
$this->currencyStorage = $currency_storage;
$this->currencyAmountFormatterManager = $currency_amount_formatter_manager;
$this->currencyExchangeRateProviderManager = $currency_exchange_rate_provider_manager;
$this->stringTranslation = $translation_manager;
$this->urlGenerator = $url_generator;
}