You are here

public function BreadcrumbExtraFieldSettingsForm::submitForm in Breadcrumb Extra Field 8

Same name and namespace in other branches
  1. 2.x src/Form/BreadcrumbExtraFieldSettingsForm.php \Drupal\breadcrumb_extra_field\Form\BreadcrumbExtraFieldSettingsForm::submitForm()

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/BreadcrumbExtraFieldSettingsForm.php, line 66

Class

BreadcrumbExtraFieldSettingsForm
BreadcrumbExtraFieldSettingsForm Class.

Namespace

Drupal\breadcrumb_extra_field\Form

Code

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