public function LingotekEntity::postDownload in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::postDownload()
- 7.6 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::postDownload()
Overrides LingotekTranslatableEntity::postDownload
File
- lib/
Drupal/ lingotek/ LingotekEntity.php, line 348 - Defines LingotekEntity.
Class
- LingotekEntity
- A class wrapper for Lingotek-specific behavior on nodes.
Code
public function postDownload($lingotek_locale, $completed) {
$type = $this
->getEntityType();
$entity = $this
->getEntity();
$id = $this
->getId();
if ($type == 'node') {
// clear any caching from entitycache module to allow the new translation to show immediately
if (module_exists('entitycache')) {
cache_clear_all($id, 'cache_entity_node');
}
}
}