public function WebformAccessGroupForm::validateForm in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_access/src/WebformAccessGroupForm.php \Drupal\webform_access\WebformAccessGroupForm::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/
webform_access/ src/ WebformAccessGroupForm.php, line 332  
Class
- WebformAccessGroupForm
 - Provides a form to define a webform access group.
 
Namespace
Drupal\webform_accessCode
public function validateForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setValue('permissions', array_filter($form_state
    ->getValue('permissions')));
}