You are here

public function MenuExportForm::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/MenuExportForm.php, line 65

Class

MenuExportForm
Configure Menu Export settings.

Namespace

Drupal\menu_export\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->exportMenus();
  $this
    ->messenger()
    ->addStatus('Menu Items exported successfully');
  parent::submitForm($form, $form_state);
}