You are here

public function ModerationSidebarSettingsForm::submitForm in Moderation Sidebar 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/ModerationSidebarSettingsForm.php, line 99

Class

ModerationSidebarSettingsForm
Configure Moderation Sidebar settings for this site.

Namespace

Drupal\moderation_sidebar\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->configFactory
    ->getEditable('moderation_sidebar.settings')
    ->set('workflows', $form_state
    ->getValue('workflows'))
    ->save();
  parent::submitForm($form, $form_state);
}