public function LingotekEntity::preDownload in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.5 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::preDownload()
- 7.6 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::preDownload()
Overrides LingotekTranslatableEntity::preDownload
File
- lib/
Drupal/ lingotek/ LingotekEntity.php, line 420 - Defines LingotekEntity.
Class
- LingotekEntity
- A class wrapper for Lingotek-specific behavior on nodes.
Code
public function preDownload($lingotek_locale, $completed) {
if ($completed) {
lingotek_keystore($this
->getEntityType(), $this->entity_id, 'target_sync_status_' . $lingotek_locale, LingotekSync::STATUS_READY);
}
else {
lingotek_keystore($this
->getEntityType(), $this->entity_id, 'target_sync_status_' . $lingotek_locale, LingotekSync::STATUS_READY_INTERIM);
}
}