function content_translation_language_types_info_alter

Same name in other branches
  1. 8.9.x core/modules/content_translation/content_translation.module \content_translation_language_types_info_alter()
  2. 10 core/modules/content_translation/content_translation.module \content_translation_language_types_info_alter()
  3. 11.x core/modules/content_translation/content_translation.module \content_translation_language_types_info_alter()

Implements hook_language_type_info_alter().

File

core/modules/content_translation/content_translation.module, line 81

Code

function content_translation_language_types_info_alter(array &$language_types) {
    // 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.