fixed programme text format

This commit is contained in:
2021-04-30 15:07:10 +02:00
parent e8cd07e222
commit 61df639d97
15 changed files with 21 additions and 23 deletions

View File

@@ -11,9 +11,9 @@ source:
plugin: d7_node_programme
node_type: popsu_special
batch_size: 500
high_water_property:
name: changed
alias: n
# high_water_property:
# name: changed
# alias: n
destination:
plugin: entity:node

View File

@@ -97,7 +97,8 @@ class D7NodeProgramme extends D7Programme {
if (!empty($special[$field])) {
// creating the sous partie contents (sub paragraphes)
$text = $special[$field][0];
$text[0]['format'] = 'wysiwyg';
// TODO: bad format http://dev.d9.popsu.archi.fr/node/213/edit?
$text['format'] = 'wysiwyg';
$p = Paragraph::create(['type' => 'sous_partie_programme_contents']);
$p->set('field_texte', $text)
->set('field_titre', $special['title'])