You are here

public function StripePaymentEvent::__construct in Stripe 2.x

Constructor.

Parameters

array $form: Nested array of form elements that comprise the form.

\Drupal\Core\Form\FormStateInterface $formState: The current state of the form. The arguments that \Drupal::formBuilder()->getForm() was originally called with are available in the array $form_state->getBuildInfo()['args'].

File

src/Event/StripePaymentEvent.php, line 65

Class

StripePaymentEvent
Wraps a stripe event for webhook.

Namespace

Drupal\stripe\Event

Code

public function __construct(array &$form, FormStateInterface $formState, $element) {
  $this->form =& $form;
  $this->formState = $formState;
  $this->element = $element;
}