protected function SecKitSettingsForm::seckitExplodeValue in Security Kit 8
Same name and namespace in other branches
- 2.x src/Form/SecKitSettingsForm.php \Drupal\seckit\Form\SecKitSettingsForm::seckitExplodeValue()
Converts a multi-line configuration option to an array.
Sanitises by trimming whitespace, and filtering empty options.
1 call to SecKitSettingsForm::seckitExplodeValue()
- SecKitSettingsForm::validateForm in src/
Form/ SecKitSettingsForm.php - Form validation handler.
File
- src/
Form/ SecKitSettingsForm.php, line 841
Class
- SecKitSettingsForm
- Implements a form to collect security check configuration.
Namespace
Drupal\seckit\FormCode
protected function seckitExplodeValue($string) {
$values = explode("\n", $string);
return array_values(array_filter(array_map('trim', $values)));
}