public function LingotekConfigChunk::setTargetsStatus in Lingotek Translation 7.5
Set the chunk's target status(es) in the config metadata table
Overrides LingotekTranslatableEntity::setTargetsStatus
1 call to LingotekConfigChunk::setTargetsStatus()
- LingotekConfigChunk::downloadTriggered in lib/
Drupal/ lingotek/ LingotekConfigChunk.php - Updates the local content of $target_code with data from a Lingotek Document
File
- lib/
Drupal/ lingotek/ LingotekConfigChunk.php, line 571 - Defines LingotekConfigChunk.
Class
- LingotekConfigChunk
- A class wrapper for Lingotek-specific behavior on ConfigChunks.
Code
public function setTargetsStatus($status, $lingotek_locale = 'all') {
if ($lingotek_locale != 'all') {
$this
->setMetadataValue('target_sync_status_' . $lingotek_locale, $status);
}
else {
// set status for all available targets
foreach ($this->language_targets as $lt) {
$this
->setMetadataValue('target_sync_status_' . $lt, $status);
}
}
return $this;
}