public static function ConfigForm::validate_css_classes in Insert 8
Parameters
array $element:
FormStateInterface $form_state:
array $form:
File
- src/
Form/ ConfigForm.php, line 102
Class
Namespace
Drupal\insert\FormCode
public static function validate_css_classes($element, &$form_state) {
// Sanitize white-space.
$segments = preg_split('/\\s+/', trim($element['#value']));
$form_state
->setValueForElement($element, join(' ', $segments));
}