public function FormComponentAddForm::validateForm in Flexiform 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/ FormComponentAddForm.php, line 136
Class
- FormComponentAddForm
- Provides a form for adding new form components.
Namespace
Drupal\flexiform\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
if (!empty($this->componentType)) {
$this->componentType
->addComponentFormValidate($form['options'], $form_state);
}
}