You are here

public function CurrencyRepository::__construct in Price 3.0.x

Same name and namespace in other branches
  1. 8 src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
  2. 3.x src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
  3. 2.0.x src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
  4. 2.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');
}