public function OrderAddForm::__construct in Commerce Core 8.2
Constructs a new OrderAddForm object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- modules/
order/ src/ Form/ OrderAddForm.php, line 39
Class
- OrderAddForm
- Provides the order add form.
Namespace
Drupal\commerce_order\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->orderStorage = $entity_type_manager
->getStorage('commerce_order');
$this->storeStorage = $entity_type_manager
->getStorage('commerce_store');
}