You are here

public function EntityTranslationDefaultHandler::setFormLanguage in Entity Translation 7

Sets the active form language.

Parameters

string $langcode: The active form language code.

Overrides EntityTranslationHandlerInterface::setFormLanguage

Deprecated

in 7.x-1.0-beta6, will be removed before 7.x-1.0. Use ::setActiveLanguage() instead.

See also

::setActiveLanguage()

1 call to EntityTranslationDefaultHandler::setFormLanguage()
EntityTranslationDefaultHandler::setActiveLanguage in includes/translation.handler.inc
Sets the active language.

File

includes/translation.handler.inc, line 875
Default translation handler for the translation module.

Class

EntityTranslationDefaultHandler
Class implementing the default entity translation behaviours.

Code

public function setFormLanguage($langcode) {
  $args = func_get_args();
  $this->activeLanguage = $langcode;
  $this
    ->notifyChildren(__FUNCTION__, $args);
}