You are here

public function LingotekContentTranslationServiceInterface::saveTargetData in Lingotek Translation 3.1.x

Same name and namespace in other branches
  1. 8 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  2. 8.2 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  3. 4.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  4. 3.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  5. 3.2.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  6. 3.3.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  7. 3.4.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  8. 3.5.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  9. 3.6.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  10. 3.7.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::saveTargetData()
  11. 3.8.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 353

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

public function saveTargetData(ContentEntityInterface &$entity, $locale, $data);