You are here

public function CurrencyForm::__construct in Commerce Core 8.2

Creates a new CurrencyForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The currency storage.

File

modules/price/src/Form/CurrencyForm.php, line 26

Class

CurrencyForm

Namespace

Drupal\commerce_price\Form

Code

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