language_field_info_alter(&$info)
Implements hook_field_info_alter().
File
- core/modules/language/language.module, line 423
- 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'; }
Please login to continue.