content_translation_language_types_info_alter

content_translation_language_types_info_alter(array &$language_types)

Implements hook_language_type_info_alter().

File

core/modules/content_translation/content_translation.module, line 68
Allows entities to be translated into different languages.

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']);
}
doc_Drupal
2016-10-29 08:58:39
Comments
Leave a Comment

Please login to continue.