public function PaymentMethodListBuilder::submitAddPaymentMethod in Ubercart 8.4
Form submission handler for adding a new payment method.
File
- payment/
uc_payment/ src/ PaymentMethodListBuilder.php, line 172
Class
- PaymentMethodListBuilder
- Defines a class to build a listing of payment method configuration entities.
Namespace
Drupal\uc_paymentCode
public function submitAddPaymentMethod(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect('entity.uc_payment_method.add_form', [
'plugin_id' => $form_state
->getValue('payment_method_type'),
]);
}