function MenuLinksetSettingsForm::submitForm

Same name and namespace in other branches
  1. 10 core/modules/system/src/Form/MenuLinksetSettingsForm.php \Drupal\system\Form\MenuLinksetSettingsForm::submitForm()

Overrides ConfigFormBase::submitForm

File

core/modules/system/src/Form/MenuLinksetSettingsForm.php, line 78

Class

MenuLinksetSettingsForm
Configure System settings for this site.

Namespace

Drupal\system\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->config('system.feature_flags')
        ->set('linkset_endpoint', $form_state->getValue('enable_endpoint'))
        ->save();
    parent::submitForm($form, $form_state);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.