function locale_form_language_admin_edit_form_alter_submit
Same name in other branches
- 8.9.x core/modules/locale/locale.module \locale_form_language_admin_edit_form_alter_submit()
- 10 core/modules/locale/locale.module \locale_form_language_admin_edit_form_alter_submit()
- 11.x core/modules/locale/locale.module \locale_form_language_admin_edit_form_alter_submit()
Form submission handler for language_admin_edit_form().
1 string reference to 'locale_form_language_admin_edit_form_alter_submit'
- locale_form_language_admin_edit_form_alter in core/
modules/ locale/ locale.module - Implements hook_form_FORM_ID_alter() for language_admin_edit_form().
File
-
core/
modules/ locale/ locale.module, line 689
Code
function locale_form_language_admin_edit_form_alter_submit($form, FormStateInterface $form_state) {
\Drupal::configFactory()->getEditable('locale.settings')
->set('translate_english', intval($form_state->getValue('locale_translate_english')))
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.