You are here

public function CommerceCartRedirectionConfigForm::validateForm in Commerce Cart Redirection 8.2

Same name and namespace in other branches
  1. 3.0.x src/Form/CommerceCartRedirectionConfigForm.php \Drupal\commerce_cart_redirection\Form\CommerceCartRedirectionConfigForm::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/Form/CommerceCartRedirectionConfigForm.php, line 155

Class

CommerceCartRedirectionConfigForm
Class CommerceCartRedirectionConfigForm.

Namespace

Drupal\commerce_cart_redirection\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {

  // If 'other' has been selected then we need to ensure that the redirection path was filled out.
  parent::validateForm($form, $form_state);
}