public function PaymentMethodConfigurationForm::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 FormBase::validateForm
File
- src/
Entity/ PaymentMethodConfiguration/ PaymentMethodConfigurationForm.php, line 127
Class
- PaymentMethodConfigurationForm
- Provides the payment method configuration form.
Namespace
Drupal\payment\Entity\PaymentMethodConfigurationCode
public function validateForm(array &$form, FormStateInterface $form_state) {
parent::validateForm($form, $form_state);
/** @var \Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationInterface $payment_method_configuration */
$payment_method_configuration = $form_state
->get('payment_method_configuration');
$payment_method_configuration
->validateConfigurationForm($form['plugin_form'], $form_state);
}