You are here

public function ProductLazyBuilders::__construct in Commerce Core 8.2

Constructs a new ProductLazyBuilders object.

Parameters

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

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

File

modules/product/src/ProductLazyBuilders.php, line 47

Class

ProductLazyBuilders
Provides #lazy_builder callbacks.

Namespace

Drupal\commerce_product

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, FormBuilderInterface $form_builder, EntityRepositoryInterface $entity_repository) {
  $this->entityTypeManager = $entity_type_manager;
  $this->formBuilder = $form_builder;
  $this->entityRepository = $entity_repository;
}