You are here

public function Rounder::__construct in Price 8

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

Class

Rounder

Namespace

Drupal\price

Code

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