You are here

public function CurrencyRepository::__construct in Price 8

Same name and namespace in other branches
  1. 3.x src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
  2. 2.0.x src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
  3. 2.x src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
  4. 3.0.x src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()

Creates an CurrencyRepository instance.

Parameters

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

File

src/Repository/CurrencyRepository.php, line 35

Class

CurrencyRepository
Defines the currency repository.

Namespace

Drupal\price\Repository

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->currencyStorage = $entity_type_manager
    ->getStorage('price_currency');
}