function language_field_info_alter

Same name in other branches
  1. 9 core/modules/language/language.module \language_field_info_alter()
  2. 8.9.x core/modules/language/language.module \language_field_info_alter()
  3. 10 core/modules/language/language.module \language_field_info_alter()

Implements hook_field_info_alter().

File

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

Code

function language_field_info_alter(&$info) {
    // Change the default behavior of language field.
    $info['language']['class'] = '\\Drupal\\language\\DefaultLanguageItem';
}

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