You are here

public function MentionsSettingsForm::submitForm in Open Social 8.2

Same name and namespace in other branches
  1. 8.9 modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  2. 8 modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  3. 8.3 modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  4. 8.4 modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  5. 8.5 modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  6. 8.6 modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  7. 8.7 modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  8. 8.8 modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  9. 10.3.x modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  10. 10.0.x modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  11. 10.1.x modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::submitForm()
  12. 10.2.x modules/custom/mentions/src/Form/MentionsSettingsForm.php \Drupal\mentions\Form\MentionsSettingsForm::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

modules/custom/mentions/src/Form/MentionsSettingsForm.php, line 86

Class

MentionsSettingsForm
Configure mentions settings.

Namespace

Drupal\mentions\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {

  // Save config.
  $config = $this
    ->config('mentions.settings');
  $config
    ->set('supported_entity_types', $form_state
    ->getValue('supported_entity_types'));
  $config
    ->save();
  parent::submitForm($form, $form_state);
}