public function FieldCollectionFieldSettings::transform

File

paragraphs/src/Plugin/migrate/process/FieldCollectionFieldSettings.php, line 21

Class

FieldCollectionFieldSettings
Configure field instance settings for paragraphs.

Namespace

Drupal\paragraphs\Plugin\migrate\process

Code

public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
  if ($row
    ->getSourceProperty('type') == 'field_collection') {
    $value['target_type'] = 'paragraph';
  }
  return $value;
}