language_field_info_alter

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';
}
doc_Drupal
2016-10-29 09:23:01
Comments
Leave a Comment

Please login to continue.