You are here

protected static function GridStackFormBase::getUserInputValues in GridStack 8.2

Returns user input values.

File

modules/gridstack_ui/src/Form/GridStackFormBase.php, line 718

Class

GridStackFormBase
Extends base form for gridstack instance configuration form.

Namespace

Drupal\gridstack_ui\Form

Code

protected static function getUserInputValues(array $element, FormStateInterface $form_state) {

  // Default to using the current selection if the form is new.
  $path = isset($element['#parents']) ? $element['#parents'] : [];

  // We need to use the actual user input, since when #limit_validation_errors
  // is used, the unvalidated user input is not added to the form state.
  // @see FormValidator::handleErrorsWithLimitedValidation()
  return NestedArray::getValue($form_state
    ->getUserInput(), $path);
}