You are here

protected function PaymentMethodAddForm::submitPayPalForm in Commerce Core 8.2

Handles the submission of the PayPal form.

Parameters

array $element: The PayPal form element.

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

1 call to PaymentMethodAddForm::submitPayPalForm()
PaymentMethodAddForm::submitConfigurationForm in modules/payment/src/PluginForm/PaymentMethodAddForm.php
Form submission handler.

File

modules/payment/src/PluginForm/PaymentMethodAddForm.php, line 259

Class

PaymentMethodAddForm

Namespace

Drupal\commerce_payment\PluginForm

Code

protected function submitPayPalForm(array $element, FormStateInterface $form_state) {
  $values = $form_state
    ->getValue($element['#parents']);
  $this->entity->paypal_mail = $values['paypal_mail'];
}