2 * Implements hook_migrate_prepare_row().
4 function {{ machine_name }}_migrate_prepare_row(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
5 if ($migration->id() == 'd6_filter_formats') {
6 $value = $source->getDatabase()->query('SELECT value FROM {variable} WHERE name = :name', [':name' => 'mymodule_filter_foo_' . $row->getSourceProperty('format')])->fetchField();
8 $row->setSourceProperty('settings:mymodule:foo', unserialize($value));