You are here

function entity_translation_form_language in Entity Translation 7

Determines the current form language.

Parameters

$langcode: The requested language code.

EntityTranslationHandlerInterface $handler: A translation handler instance.

Return value

A valid language code.

Deprecated

This is no longer used and will be removed in the first stable release.

File

./entity_translation.module, line 628

Code

function entity_translation_form_language($langcode, $handler) {
  return entity_translation_get_existing_language($handler
    ->getEntity(), $handler
    ->getEntityType(), $langcode);
}