public function AssignmentOptionalForm::validateForm in Features 8.3
Same name and namespace in other branches
- 8.4 modules/features_ui/src/Form/AssignmentOptionalForm.php \Drupal\features_ui\Form\AssignmentOptionalForm::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/ AssignmentOptionalForm.php, line 37
Class
- AssignmentOptionalForm
- Configures the selected configuration assignment method for this site.
Namespace
Drupal\features_ui\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
$form_state
->setValue('types', array_map('array_filter', $form_state
->getValue('types')));
}