function LocaleFormHooks::formLanguageAdminAddFormAlter

Same name and namespace in other branches
  1. main core/modules/locale/src/Hook/LocaleFormHooks.php \Drupal\locale\Hook\LocaleFormHooks::formLanguageAdminAddFormAlter()

Implements hook_form_FORM_ID_alter() for language_admin_add_form().

Attributes

#[Hook('form_language_admin_add_form_alter')]

File

core/modules/locale/src/Hook/LocaleFormHooks.php, line 84

Class

LocaleFormHooks
Form hook implementations for locale.

Namespace

Drupal\locale\Hook

Code

public function formLanguageAdminAddFormAlter(array &$form, FormStateInterface $form_state) : void {
  $form['predefined_submit']['#submit'][] = self::class . ':formLanguageAdminAddFormAlterSubmit';
  $form['custom_language']['submit']['#submit'][] = self::class . ':formLanguageAdminAddFormAlterSubmit';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.