You are here

public function LibraryCheckoutForm::validateForm in Library 8

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/Form/LibraryCheckoutForm.php, line 119

Class

LibraryCheckoutForm
Library checkout form.

Namespace

Drupal\library\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) : void {
  parent::validateForm($form, $form_state);

  // @todo Verify that the state change is allowed,
  // don't trust the parameters.
}