function ContentTranslationHooks::languageTypesInfoAlter
Implements hook_language_types_info_alter().
Attributes
#[Hook('language_types_info_alter')]
File
-
core/
modules/ content_translation/ src/ Hook/ ContentTranslationHooks.php, line 89
Class
- ContentTranslationHooks
- Hook implementations for content_translation.
Namespace
Drupal\content_translation\HookCode
public function languageTypesInfoAlter(array &$language_types) : void {
// Make content language negotiation configurable by removing the 'locked'
// flag.
$language_types[LanguageInterface::TYPE_CONTENT]['locked'] = FALSE;
unset($language_types[LanguageInterface::TYPE_CONTENT]['fixed']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.