public function CurrencyRepository::__construct in Price 2.0.x
Same name and namespace in other branches
- 8 src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
- 3.x src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
- 2.x src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
- 3.0.x src/Repository/CurrencyRepository.php \Drupal\price\Repository\CurrencyRepository::__construct()
Constructs a new CurrencyRepository object.
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\RepositoryCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
parent::__construct();
$this->currencyStorage = $entity_type_manager
->getStorage('price_currency');
}