You are here

public function ProductBundleTypeForm::__construct in Commerce Product Bundle 8

ProductBundleTypeForm constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

File

src/Form/ProductBundleTypeForm.php, line 33

Class

ProductBundleTypeForm
Provides the product bundle type form.

Namespace

Drupal\commerce_product_bundle\Form

Code

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