Propagates the returned job item translations to the sources.
bool TRUE if we were able to propagate the translated data and the item could be saved, FALSE otherwise.
Overrides JobItemInterface::acceptTranslation
public function acceptTranslation() {
if (!$this
->isNeedsReview() || !($plugin = $this
->getSourcePlugin())) {
return FALSE;
}
if (!$plugin
->saveTranslation($this, $this
->getJob()
->getTargetLangcode())) {
return FALSE;
}
// If the plugin could save the translation, we will set it
// to the 'accepted' state.
$this
->accepted();
return TRUE;
}