function LanguageHooks::fieldInfoAlter
Implements hook_field_info_alter().
File
-
core/
modules/ language/ src/ Hook/ LanguageHooks.php, line 293
Class
- LanguageHooks
- Hook implementations for language.
Namespace
Drupal\language\HookCode
public function fieldInfoAlter(&$info) : void {
// 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.