function language_process_language_select

Same name and namespace in other branches
  1. 10 core/modules/language/language.module \language_process_language_select()
  2. 11.x core/modules/language/language.module \language_process_language_select()
  3. 9 core/modules/language/language.module \language_process_language_select()
  4. 8.9.x core/modules/language/language.module \language_process_language_select()

Processes a language select list form element.

Parameters

array $element: The form element to process.

Return value

array The processed form element.

Deprecated

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\language\Hook\LanguageHooks::processLanguageSelect() instead.

See also

https://www.drupal.org/node/3566774

File

core/modules/language/language.module, line 27

Code

function language_process_language_select($element) {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use \\Drupal\\language\\Hook\\LanguageHooks::processLanguageSelect() instead. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
  return \Drupal::service(LanguageHooks::class)->processLanguageSelect($element);
}

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