You are here

public function Admin::submitForm in Pack & Upload 8

Same name and namespace in other branches
  1. 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

Admin

Namespace

Drupal\pack_upload\Form

Code

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);
}