public function PaymentMethodForm::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 EntityForm::buildForm
File
- payment/
uc_payment/ src/ Form/ PaymentMethodForm.php, line 30
Class
- PaymentMethodForm
- Provides form for block instance forms.
Namespace
Drupal\uc_payment\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$this->plugin = $this->entity
->getPlugin();
return parent::buildForm($form, $form_state);
}