You are here

public function PaymentFactory::__construct in Payment 8.2

Constructs a new instance.

Parameters

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

\Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemManagerInterface $payment_line_item_manager: The payment line item manager.

File

modules/payment_reference/src/PaymentFactory.php, line 36

Class

PaymentFactory
Provides a payment factory service.

Namespace

Drupal\payment_reference

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, PaymentLineItemManagerInterface $payment_line_item_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->paymentLineItemManager = $payment_line_item_manager;
}