You are here

public function TestGateway::submitConfigurationForm in Ubercart 8.4

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

Overrides CreditCardPaymentMethodBase::submitConfigurationForm

File

payment/uc_credit/src/Plugin/Ubercart/PaymentMethod/TestGateway.php, line 58

Class

TestGateway
Defines the test gateway payment method.

Namespace

Drupal\uc_credit\Plugin\Ubercart\PaymentMethod

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->configuration['debug'] = $form_state
    ->getValue('debug');
  return parent::submitConfigurationForm($form, $form_state);
}