You are here

public function CurrencyAmount::__construct in Currency 8.3

Constructs a new 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\Entity\EntityStorageInterface $currency_storage:

\Commercie\Currency\InputInterface $input:

\Drupal\currency\FormHelperInterface $form_helper:

Overrides PluginBase::__construct

File

src/Element/CurrencyAmount.php, line 60

Class

CurrencyAmount
Provides an element to collect amounts of money and convert them to strings.

Namespace

Drupal\currency\Element

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation, EntityStorageInterface $currency_storage, InputInterface $input, FormHelperInterface $form_helper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currencyStorage = $currency_storage;
  $this->formHelper = $form_helper;
  $this->input = $input;
  $this->stringTranslation = $string_translation;
}