You are here

public function PaymentForm::__construct in Payment 8.2

Same name in this branch
  1. 8.2 modules/payment_form/src/Plugin/Payment/Type/PaymentForm.php \Drupal\payment_form\Plugin\Payment\Type\PaymentForm::__construct()
  2. 8.2 modules/payment_form/src/Plugin/Field/FieldFormatter/PaymentForm.php \Drupal\payment_form\Plugin\Field\FieldFormatter\PaymentForm::__construct()
  3. 8.2 modules/payment_form/src/Plugin/Field/FieldWidget/PaymentForm.php \Drupal\payment_form\Plugin\Field\FieldWidget\PaymentForm::__construct()

Constructs a new instance.

Parameters

mixed[] $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed[] $plugin_definition: The plugin implementation definition.

\Drupal\payment\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translator.

Overrides PaymentTypeBase::__construct

File

modules/payment_form/src/Plugin/Payment/Type/PaymentForm.php, line 55

Class

PaymentForm
The payment form field payment type.

Namespace

Drupal\payment_form\Plugin\Payment\Type

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EventDispatcherInterface $event_dispatcher, EntityFieldManagerInterface $entity_field_manager, TranslationInterface $string_translation) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher);
  $this->entityFieldManager = $entity_field_manager;
  $this->stringTranslation = $string_translation;
}