public function OffsitePaymentMethodForm::buildForm in Ubercart 8.4
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides FormInterface::buildForm
File
- payment/
uc_payment/ src/ Form/ OffsitePaymentMethodForm.php, line 43
Class
- OffsitePaymentMethodForm
- Builds the form that payment methods use to redirect off-site.
Namespace
Drupal\uc_payment\FormCode
public function buildForm(array $form, FormStateInterface $form_state, OrderInterface $order = NULL) {
$form_state
->disableCache();
return $this->plugin
->buildRedirectForm($form, $form_state, $order);
}