public function TwoCheckout::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 PaymentMethodPluginBase::submitConfigurationForm
File
- payment/
uc_2checkout/ src/ Plugin/ Ubercart/ PaymentMethod/ TwoCheckout.php, line 118
Class
- TwoCheckout
- Defines the 2Checkout payment method.
Namespace
Drupal\uc_2checkout\Plugin\Ubercart\PaymentMethodCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['check'] = $form_state
->getValue('check');
$this->configuration['checkout_type'] = $form_state
->getValue('checkout_type');
$this->configuration['demo'] = $form_state
->getValue('demo');
$this->configuration['language'] = $form_state
->getValue('language');
$this->configuration['notification_url'] = $form_state
->getValue('notification_url');
$this->configuration['secret_word'] = $form_state
->getValue('secret_word');
$this->configuration['sid'] = $form_state
->getValue('sid');
}