function ToolbarSettingsForm::submitForm
Same name in other branches
- 5.x src/Form/ToolbarSettingsForm.php \Drupal\devel\Form\ToolbarSettingsForm::submitForm()
Overrides ConfigFormBase::submitForm
File
-
src/
Form/ ToolbarSettingsForm.php, line 84
Class
- ToolbarSettingsForm
- Configures devel toolbar settings.
Namespace
Drupal\devel\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state->getValues();
$toolbar_items = array_keys(array_filter($values['toolbar_items']));
$this->config('devel.toolbar.settings')
->set('toolbar_items', $toolbar_items)
->save();
parent::submitForm($form, $form_state);
}