public function LingotekEntity::downloadTriggered in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.5 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::downloadTriggered()
- 7.6 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::downloadTriggered()
Updates the local content of $target_code with data from a Lingotek Document
Parameters
string $lingotek_locale: The code for the language that needs to be updated.
Return value
bool TRUE if the content updates succeeded, FALSE otherwise.
Overrides LingotekTranslatableEntity::downloadTriggered
File
- lib/
Drupal/ lingotek/ LingotekEntity.php, line 266 - Defines LingotekEntity.
Class
- LingotekEntity
- A class wrapper for Lingotek-specific behavior on nodes.
Code
public function downloadTriggered($lingotek_locale) {
if (module_exists('rules')) {
rules_invoke_event('lingotek_entity_translation_ready', new EntityDrupalWrapper($this->entity_type, $this->entity));
}
return lingotek_entity_download_triggered($this->entity, $this->entity_type, $lingotek_locale);
}