public function LingotekContentTranslationServiceInterface::saveTargetData in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 8 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 8.2 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 4.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 3.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 3.1.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 3.2.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 3.3.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 3.4.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 3.5.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 3.6.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
- 3.7.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
Save the entity translation.
Parameters
\Drupal\Core\Entity\ContentEntityInterface &$entity: The entity we want to save a translation for.
$locale: The locale of the translation being saved.
$data: The data being saved.
Return value
\Drupal\Core\Entity\ContentEntityInterface Returns the entity which translations are saved.
1 method overrides LingotekContentTranslationServiceInterface::saveTargetData()
- LingotekContentTranslationService::saveTargetData in src/
LingotekContentTranslationService.php - Save the entity translation.
File
- src/
LingotekContentTranslationServiceInterface.php, line 372
Class
- LingotekContentTranslationServiceInterface
- Service for managing Lingotek content translations.
Namespace
Drupal\lingotekCode
public function saveTargetData(ContentEntityInterface &$entity, $locale, $data);