function language_field_info_alter in Drupal 9
Same name and namespace in other branches
- 8 core/modules/language/language.module \language_field_info_alter()
Implements hook_field_info_alter().
File
- core/
modules/ language/ language.module, line 371 - Add language handling functionality to Drupal.
Code
function language_field_info_alter(&$info) {
// Change the default behavior of language field.
$info['language']['class'] = '\\Drupal\\language\\DefaultLanguageItem';
}