You are here

public function EntityTranslationHandlerInterface::setTranslation in Entity Translation 7

Adds/updates an entity translation.

Parameters

$translation: A translation array as defined by the translation table's schema.

$values: (optional) the values that should be assigned to the field translations.

1 method overrides EntityTranslationHandlerInterface::setTranslation()
EntityTranslationDefaultHandler::setTranslation in includes/translation.handler.inc

File

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

Class

EntityTranslationHandlerInterface
Interface for enabling entity translation.

Code

public function setTranslation($translation, $values = NULL);