You are here

public function CurrencyForm::__construct in Price 3.x

Same name and namespace in other branches
  1. 8 src/Form/CurrencyForm.php \Drupal\price\Form\CurrencyForm::__construct()
  2. 2.0.x src/Form/CurrencyForm.php \Drupal\price\Form\CurrencyForm::__construct()
  3. 2.x src/Form/CurrencyForm.php \Drupal\price\Form\CurrencyForm::__construct()
  4. 3.0.x src/Form/CurrencyForm.php \Drupal\price\Form\CurrencyForm::__construct()

Creates a new CurrencyForm object.

Parameters

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

File

src/Form/CurrencyForm.php, line 26

Class

CurrencyForm

Namespace

Drupal\price\Form

Code

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