public function EntityTranslationHandlerInterface::setActiveLanguage in Entity Translation 7
Sets the active language.
This is the language that determines which translation should be considered "active" for the wrapped entity. The "Entity Translation" module uses this information to implement the UI-based translation workflow. Other modules can rely on it to implement their own entity translation-related logic.
This will affect which language is returned by the core "entity_language()" function.
Parameters
string $langcode: The active language code.
See also
::getActiveLanguage()
1 method overrides EntityTranslationHandlerInterface::setActiveLanguage()
- EntityTranslationDefaultHandler::setActiveLanguage in includes/
translation.handler.inc - Sets the active language.
File
- includes/
translation.handler.inc, line 119 - Default translation handler for the translation module.
Class
- EntityTranslationHandlerInterface
- Interface for enabling entity translation.
Code
public function setActiveLanguage($langcode);