You are here

public function ProductLazyBuilders::__construct in Commerce Ajax Add to Cart 8

Constructs a new CartLazyBuilders object.

Parameters

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

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

File

src/ProductLazyBuilders.php, line 36

Class

ProductLazyBuilders
Provides #lazy_builder callbacks.

Namespace

Drupal\dc_ajax_add_cart

Code

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