function ContentTranslationHooks::elementInfoAlter

Implements hook_element_info_alter().

Attributes

#[Hook('element_info_alter')]

File

core/modules/content_translation/src/Hook/ContentTranslationHooks.php, line 496

Class

ContentTranslationHooks
Hook implementations for content_translation.

Namespace

Drupal\content_translation\Hook

Code

public function elementInfoAlter(&$type) : void {
  if (isset($type['language_configuration'])) {
    $type['language_configuration']['#process'][] = 'content_translation_language_configuration_element_process';
  }
}

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