You are here

public function PaymentStatusForm::validateForm in Payment 8.2

Same name in this branch
  1. 8.2 src/Entity/PaymentStatus/PaymentStatusForm.php \Drupal\payment\Entity\PaymentStatus\PaymentStatusForm::validateForm()
  2. 8.2 src/Entity/Payment/PaymentStatusForm.php \Drupal\payment\Entity\Payment\PaymentStatusForm::validateForm()

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/PaymentStatus/PaymentStatusForm.php, line 110

Class

PaymentStatusForm
Provides the payment status add/edit form.

Namespace

Drupal\payment\Entity\PaymentStatus

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  $this
    ->getParentPaymentStatusSelector($form_state)
    ->validateSelectorForm($form['parent_id'], $form_state);
}