public function LingotekSettingsCommunityForm::submitForm in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 4.0.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 3.0.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 3.1.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 3.2.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 3.3.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 3.4.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 3.5.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 3.6.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 3.7.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
- 3.8.x src/Form/LingotekSettingsCommunityForm.php \Drupal\lingotek\Form\LingotekSettingsCommunityForm::submitForm()
*
Overrides ConfigFormBase::submitForm
File
- src/
Form/ LingotekSettingsCommunityForm.php, line 66 - Contains \Drupal\lingotek\Form\LingotekSettingsCommunityForm.
Class
- LingotekSettingsCommunityForm
- Configure text display settings for this page.
Namespace
Drupal\lingotek\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_values = $form_state
->getValues();
$this->lingotek
->set('default.community', $form_values['community']);
$this->lingotek
->getResources(TRUE);
// update resources based on newly selected community
$form_state
->setRedirect('lingotek.setup_defaults');
parent::submitForm($form, $form_state);
}