'file_generic', ]; } /** * {@inheritdoc} */ public function getFieldFormatterMap() { return [ 'default' => 'file_default', 'url_plain' => 'file_url_plain', 'path_plain' => 'file_url_plain', 'image_plain' => 'image', 'image_nodelink' => 'image', 'image_imagelink' => 'image', ]; } /** * {@inheritdoc} */ public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) { $process = [ 'plugin' => 'd6_cck_file', 'source' => $field_name, ]; $migration->mergeProcessOfProperty($field_name, $process); } /** * {@inheritdoc} */ public function getFieldType(Row $row) { return $row->getSourceProperty('widget_type') == 'imagefield_widget' ? 'image' : 'file'; } }