You are here

public function MobQueueSettings::submitForm in Drush Queue Handling 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/MobQueueSettings.php, line 26
Contains \Drupal\mob_queue\Form\MobQueueSettings.

Class

MobQueueSettings

Namespace

Drupal\mob_queue\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this
    ->config('mob_queue.settings');
  $config
    ->set('mob_qinfo', $form_state
    ->getValue('mob_qinfo'));
  $config
    ->save();
  if (method_exists($this, '_submitForm')) {
    $this
      ->_submitForm($form, $form_state);
  }
  parent::submitForm($form, $form_state);
}