You are here

public function PaymentLineItemPaymentBasicFormElements::submitForm in Payment 8.2

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

modules/payment_test/src/PaymentLineItemPaymentBasicFormElements.php, line 59

Class

PaymentLineItemPaymentBasicFormElements

Namespace

Drupal\payment_test

Code

public function submitForm(array &$form, FormStateInterface $form_state) {

  /** @var \Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemInterface $line_item */
  $line_item = $form_state
    ->get('payment_line_item');
  $line_item
    ->submitConfigurationForm($form['line_item'], $form_state);
  $form_state
    ->setRedirect('user.login');
}