public function MolliePayment::validateConfigurationForm in Mollie Payment 8.2
Form validation handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides PaymentMethodConfigurationBase::validateConfigurationForm
File
- src/
Plugin/ Payment/ MethodConfiguration/ MolliePayment.php, line 320
Class
- MolliePayment
- Provides the configuration for the mollie_payment payment method plugin.
Namespace
Drupal\mollie_payment\Plugin\Payment\MethodConfigurationCode
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
$this
->getExecutePaymentStatusSelector($form_state)
->validateSelectorForm($form['plugin_form']['execute']['execute_status'], $form_state);
$this
->getCapturePaymentStatusSelector($form_state)
->validateSelectorForm($form['plugin_form']['capture']['plugin_form']['capture_status'], $form_state);
$this
->getRefundPaymentStatusSelector($form_state)
->validateSelectorForm($form['plugin_form']['refund']['plugin_form']['refund_status'], $form_state);
}