public function LingotekEntity::setExclusiveTargetsStatus in Lingotek Translation 7.7
Overrides LingotekTranslatableEntity::setExclusiveTargetsStatus
File
- lib/
Drupal/ lingotek/ LingotekEntity.php, line 473 - Defines LingotekEntity.
Class
- LingotekEntity
- A class wrapper for Lingotek-specific behavior on nodes.
Code
public function setExclusiveTargetsStatus($status_to_set, $statuses_to_exclude) {
foreach ($this->language_targets as $lt) {
if (!in_array($this
->getMetadataValue('target_sync_status_' . $lt), $statuses_to_exclude)) {
$this
->setMetadataValue('target_sync_status_' . $lt, $status_to_set);
}
}
return $this;
}