You are here

public function CurrencyImporter::__construct in Commerce Core 8.2

Creates a new CurrencyImporter object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

modules/price/src/CurrencyImporter.php, line 48

Class

CurrencyImporter
Default implementation of the currency importer.

Namespace

Drupal\commerce_price

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager) {
  $this->storage = $entity_type_manager
    ->getStorage('commerce_currency');
  $this->languageManager = $language_manager;
  $this->externalRepository = new CurrencyRepository();
}