You are here

public function FormHelper::__construct in Currency 8.3

Constructs a new instance.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface:

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

File

src/FormHelper.php, line 36

Class

FormHelper
Provides form helpers.

Namespace

Drupal\currency

Code

public function __construct(TranslationInterface $string_translation, EntityTypeManagerInterface $entity_type_manager) {
  $this->currencyStorage = $entity_type_manager
    ->getStorage('currency');
  $this->currencyLocaleStorage = $entity_type_manager
    ->getStorage('currency_locale');
  $this->stringTranslation = $string_translation;
}