public function ProductTypeForm::__construct in Commerce Core 8.2
Creates a new ProductTypeForm object.
Parameters
\Drupal\commerce\EntityTraitManagerInterface $trait_manager: The entity trait manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
Overrides CommerceBundleEntityFormBase::__construct
File
- modules/
product/ src/ Form/ ProductTypeForm.php, line 45
Class
Namespace
Drupal\commerce_product\FormCode
public function __construct(EntityTraitManagerInterface $trait_manager, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) {
parent::__construct($trait_manager);
$this->variationTypeStorage = $entity_type_manager
->getStorage('commerce_product_variation_type');
$this->entityFieldManager = $entity_field_manager;
}