public function Rounder::__construct in Price 8
Same name and namespace in other branches
- 3.x src/Rounder.php \Drupal\price\Rounder::__construct()
- 2.0.x src/Rounder.php \Drupal\price\Rounder::__construct()
- 2.x src/Rounder.php \Drupal\price\Rounder::__construct()
- 3.0.x src/Rounder.php \Drupal\price\Rounder::__construct()
Constructs a new Rounder object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Rounder.php, line 22
Class
Namespace
Drupal\priceCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->currencyStorage = $entity_type_manager
->getStorage('price_currency');
}