function FieldConfigEditForm::processFieldStorageSubmit

Same name and namespace in other branches
  1. 10 core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::processFieldStorageSubmit()

Process handler for subform submit.

File

core/modules/field_ui/src/Form/FieldConfigEditForm.php, line 467

Class

FieldConfigEditForm
Provides a form for the field settings form.

Namespace

Drupal\field_ui\Form

Code

public static function processFieldStorageSubmit(array $element, FormStateInterface $form_state, &$complete_form) {
    // Limit validation errors to the field storage form while the field storage
    // form is being edited.
    $complete_form['#limit_validation_errors'] = [
        array_slice($element['#parents'], 0, -1),
    ];
    return $element;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.