public function Admin::submitForm in Pack & Upload 8
Same name and namespace in other branches
- 2.0.x lib/Drupal/pack_upload/Form/Admin.php \Drupal\pack_upload\Form\Admin::submitForm()
Overrides ConfigFormBase::submitForm
See also
\Drupal\Core\Form\ConfigFormBase::submitForm()
File
- lib/
Drupal/ pack_upload/ Form/ Admin.php, line 48 - This file contains the code for Admin settings form.
Class
Namespace
Drupal\pack_upload\FormCode
public function submitForm(array &$form, array &$form_state) {
$this
->config('pack_upload.settings')
->set('path', $form_state['values']['path'])
->save();
parent::submitForm($form, $form_state);
}