You are here

public function MenuExportConfigurationForm::submitForm in Menu Import and Export 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/MenuExportConfigurationForm.php, line 71

Class

MenuExportConfigurationForm
Configure Menu Export settings.

Namespace

Drupal\menu_export\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('menu_export.settings')
    ->set('menus', $form_state
    ->getValue('menus'))
    ->save();
  $this
    ->backupMenus($form_state
    ->getValue('menus'));
  parent::submitForm($form, $form_state);
}