Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LanguageHooks.php

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\Hook

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal