You are here

function hook_merge_translations_prepare_alter in Merge translations 8

Add ability to alter $node values before add to translation.

Parameters

array $node_array: Node_array.

1 invocation of hook_merge_translations_prepare_alter()
MergeTranslationsForm::addTranslation in src/Form/MergeTranslationsForm.php
AddTranslation.

File

./merge_translations.api.php, line 14
merge_translations.api.php

Code

function hook_merge_translations_prepare_alter(array &$node_array) {
  $node_array['title'][0]['value'] = 'Translated title';
}