public function AssignmentBaseForm::validateForm in Features 8.4
Same name and namespace in other branches
- 8.3 modules/features_ui/src/Form/AssignmentBaseForm.php \Drupal\features_ui\Form\AssignmentBaseForm::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/ AssignmentBaseForm.php, line 44
Class
- AssignmentBaseForm
- 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')));
}