You are here

function language_field_info_alter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/language.module \language_field_info_alter()

Implements hook_field_info_alter().

File

core/modules/language/language.module, line 418
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';
}