public function SettingsForm::submitForm in File (Field) Paths 8
Form submission 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 ConfigFormBase::submitForm
File
- src/
Form/ SettingsForm.php, line 116
Class
- SettingsForm
- Administration settings form for File (Field) Paths.
Namespace
Drupal\filefield_paths\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('filefield_paths.settings')
->set('temp_location', $values['temp_location'])
->save();
}