public function ConfigurationForm::submitForm in Organic Groups Menu (OG Menu) 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/ ConfigurationForm.php, line 47
Class
- ConfigurationForm
- Provides the configuration form for OG Menu.
Namespace
Drupal\og_menu\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('og_menu.settings')
->set('autocreate', $form_state
->getValue('autocreate'))
->save();
}