public function SettingsForm::submitForm in Field Formatter Template 8
Same name and namespace in other branches
- 8.2 src/Form/SettingsForm.php \Drupal\fft\Form\SettingsForm::submitForm()
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 46
Class
- SettingsForm
- Defines a form that configures devel settings.
Namespace
Drupal\fft\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('fft.settings')
->set('fft_storage_dir', $form_state
->getValue('fft_storage_dir'))
->save();
}