You are here

public function MiniDonationForm::__construct in Commerce Donate 8

Constructs a new DonationForm object.

Parameters

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

\Drupal\commerce_cart\CartManagerInterface $cart_manager: The cart manager.

\Drupal\commerce_cart\CartProviderInterface $cart_provider: The cart provider.

\Drupal\commerce_store\CurrentStoreInterface $current_store: The current store.

File

src/Form/MiniDonationForm.php, line 58

Class

MiniDonationForm
Provides the donation form.

Namespace

Drupal\commerce_donate\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, CartManagerInterface $cart_manager, CartProviderInterface $cart_provider, CurrentStoreInterface $current_store) {
  $this->entityTypeManager = $entity_type_manager;
  $this->cartManager = $cart_manager;
  $this->cartProvider = $cart_provider;
  $this->currentStore = $current_store;
}