You are here

public function LingotekEntity::postDownload in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.5 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::postDownload()
  2. 7.6 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::postDownload()

Overrides LingotekTranslatableEntity::postDownload

File

lib/Drupal/lingotek/LingotekEntity.php, line 429
Defines LingotekEntity.

Class

LingotekEntity
A class wrapper for Lingotek-specific behavior on nodes.

Code

public function postDownload($lingotek_locale, $completed) {
  $type = $this
    ->getEntityType();
  $id = $this->entity_id;
  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');
    }
  }
}