public function PaymentLineItemPaymentBasicFormElements::validateForm in Payment 8.2
Form validation handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::validateForm
File
- modules/
payment_test/ src/ PaymentLineItemPaymentBasicFormElements.php, line 50
Class
Namespace
Drupal\payment_testCode
public function validateForm(array &$form, FormStateInterface $form_state) {
/** @var \Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemInterface $line_item */
$line_item = $form_state
->get('payment_line_item');
$line_item
->validateConfigurationForm($form['line_item'], $form_state);
}