function language_field_info_alter in Drupal 8
Same name and namespace in other branches
- 9 core/modules/language/language.module \language_field_info_alter()
Implements hook_field_info_alter().
File
- core/
modules/ language/ language.module, line 397 - 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';
}