You are here

public function Rounder::__construct in Price 2.0.x

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

Class

Rounder
Rounds prices.

Namespace

Drupal\price

Code

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