public function CurrencyForm::__construct in Currency 8.3
Constructs a new instance.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translator.
\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: The link generator.
\Drupal\Core\Entity\EntityStorageInterface $currency_storage: The currency storage.
\Commercie\Currency\InputInterface $input_parser: The Currency input parser.
File
- src/
Entity/ Currency/ CurrencyForm.php, line 52
Class
- CurrencyForm
- Provides a currency add/edit form.
Namespace
Drupal\currency\Entity\CurrencyCode
public function __construct(TranslationInterface $string_translation, LinkGeneratorInterface $link_generator, EntityStorageInterface $currency_storage, InputInterface $input_parser) {
$this->currencyStorage = $currency_storage;
$this->inputParser = $input_parser;
$this->linkGenerator = $link_generator;
$this->stringTranslation = $string_translation;
}