function locale_form_language_admin_edit_form_alter_submit
locale_form_language_admin_edit_form_alter_submit($form, FormStateInterface $form_state)
Form submission handler for language_admin_edit_form().
File
- core/modules/locale/locale.module, line 730
- Enables the translation of the user interface to languages other than English.
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(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.module/function/locale_form_language_admin_edit_form_alter_submit/8.1.x