function LocaleHooks::formLanguageAdminAddFormAlter
Implements hook_form_FORM_ID_alter() for language_admin_add_form().
File
-
core/
modules/ locale/ src/ Hook/ LocaleHooks.php, line 308
Class
- LocaleHooks
- Hook implementations for locale.
Namespace
Drupal\locale\HookCode
public function formLanguageAdminAddFormAlter(&$form, FormStateInterface $form_state) : void {
$form['predefined_submit']['#submit'][] = 'locale_form_language_admin_add_form_alter_submit';
$form['custom_language']['submit']['#submit'][] = 'locale_form_language_admin_add_form_alter_submit';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.