You are here

public function AssignmentCoreForm::validateForm in Features 8.4

Same name and namespace in other branches
  1. 8.3 modules/features_ui/src/Form/AssignmentCoreForm.php \Drupal\features_ui\Form\AssignmentCoreForm::validateForm()

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/features_ui/src/Form/AssignmentCoreForm.php, line 37

Class

AssignmentCoreForm
Configures the selected configuration assignment method for this site.

Namespace

Drupal\features_ui\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setValue('types', array_map('array_filter', $form_state
    ->getValue('types')));
}