You are here

public function CustomerProfileTestForm::__construct in Commerce Core 8.2

Constructs a new CustomerProfileTestForm object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

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

\Drupal\commerce\InlineFormManager $inline_form_manager: The inline form manager.

File

modules/order/tests/modules/commerce_order_test/src/Form/CustomerProfileTestForm.php, line 48

Class

CustomerProfileTestForm
A form for testing the customer_profile inline form.

Namespace

Drupal\commerce_order_test\Form

Code

public function __construct(AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, InlineFormManager $inline_form_manager) {
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->inlineFormManager = $inline_form_manager;
}