public function YamlFormUiElementDeleteForm::validateForm in YAML Form 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
- modules/
yamlform_ui/ src/ Form/ YamlFormUiElementDeleteForm.php, line 199
Class
- YamlFormUiElementDeleteForm
- Form for deleting a form element.
Namespace
Drupal\yamlform_ui\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
$this->yamlform
->deleteElement($this->key);
}