I am trying to write custom migrations to migrate my Drupal 7 website to Drupal 8. I am currently using Drupal 8.7.10 and Drupal 7.61 for a copy of the production website.
I have tried to migrate description from drupal 7 source and set format as "full_html" for drupal 8.
I have read a lot of sources, for example Migrating input formats causes errors
I have used this code for migration
description/value: description
description/format: format2
and for process plugin
public function prepareRow(Row $row) {
$row->setSourceProperty('format2', 'full_html');
}
but format didn`t saved for empty description.
How to save the format if the description is not filled?