You are here

public function CartLinksForm::validateForm in Ubercart 8.4

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

uc_cart_links/src/Form/CartLinksForm.php, line 190

Class

CartLinksForm
Preprocesses a cart link, confirming with the user for destructive actions.

Namespace

Drupal\uc_cart_links\Form

Code

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

  //if (!uc_cart_links_is_valid_syntax('/cart/add/' . $this->actions)) {

  //  Don't process cart link, but log it so admin knows bad link was passed.

  //}
}