public function EntityTranslationDefaultHandler::getActiveLanguage in Entity Translation 7
Returns the active language.
Return value
string The active language for the wrapped entity.
Overrides EntityTranslationHandlerInterface::getActiveLanguage
See also
::setActiveLanguage()
8 calls to EntityTranslationDefaultHandler::getActiveLanguage()
- EntityTranslationDefaultHandler::addChild in includes/
translation.handler.inc - EntityTranslationDefaultHandler::entityForm in includes/
translation.handler.inc - EntityTranslationDefaultHandler::entityFormLanguageWidgetSubmit in includes/
translation.handler.inc - EntityTranslationDefaultHandler::entityFormSubmit in includes/
translation.handler.inc - EntityTranslationDefaultHandler::getSharedFieldsAccess in includes/
translation.handler.inc
File
- includes/
translation.handler.inc, line 865 - Default translation handler for the translation module.
Class
- EntityTranslationDefaultHandler
- Class implementing the default entity translation behaviours.
Code
public function getActiveLanguage() {
// @todo To fully preserve BC, we proxy the call to the deprecated
// ::getFormLanguage method. This will keep things working even when it
// has been overridden. Inline its implementation here upon removal.
return $this
->getFormLanguage();
}