You are here

protected function ConfigForm::sanitize_array in Insert 8.2

Parameters

array $source:

Return value

array

1 call to ConfigForm::sanitize_array()
ConfigForm::submitForm in src/Form/ConfigForm.php
@inheritdoc

File

src/Form/ConfigForm.php, line 174

Class

ConfigForm

Namespace

Drupal\insert\Form

Code

protected function sanitize_array(array $source) {
  return array_filter($source, function ($value) {
    return $value !== '';
  });
}