Skip to content

Commit

Permalink
UHF-10742: use the old way just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
rpnykanen committed Oct 11, 2024
1 parent 17c24f0 commit 9e7b7be
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public function processItem($data): void {
continue;
}

$duplicateParagraph = $added_paragraph->addTranslation($lang);
$duplicateParagraph = $added_paragraph->createDuplicate();
$duplicateParagraph->set('langcode', $lang);
$duplicateParagraph->save();

$paragraph_reference = [
'target_id' => $duplicateParagraph->id(),
Expand Down

0 comments on commit 9e7b7be

Please sign in to comment.