function FieldConfigEditForm::validateForm
Overrides FormBase::validateForm
File
- 
              core/
modules/ field_ui/ src/ Form/ FieldConfigEditForm.php, line 177  
Class
- FieldConfigEditForm
 - Provides a form for the field settings form.
 
Namespace
Drupal\field_ui\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
  parent::validateForm($form, $form_state);
  if (isset($form['default_value'])) {
    $item = $form['#entity']->get($this->entity
      ->getName());
    $item->defaultValuesFormValidate($form['default_value'], $form, $form_state);
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.