public function EntityTranslationDefaultHandler::getLanguageKey in Entity Translation 7
Overrides EntityTranslationHandlerInterface::getLanguageKey
See also
EntityTranslationHandlerInterface::getLanguageKey()
2 calls to EntityTranslationDefaultHandler::getLanguageKey()
- EntityTranslationDefaultHandler::entityFormLanguageWidget in includes/
translation.handler.inc - EntityTranslationDefaultHandler::updateFormLanguage in includes/
translation.handler.inc - Update the current form language based on the submitted value.
1 method overrides EntityTranslationDefaultHandler::getLanguageKey()
File
- includes/
translation.handler.inc, line 904 - Default translation handler for the translation module.
Class
- EntityTranslationDefaultHandler
- Class implementing the default entity translation behaviours.
Code
public function getLanguageKey() {
return !empty($this->entityInfo['entity keys']['language']) ? $this->entityInfo['entity keys']['language'] : 'language';
}