public function ParagraphsFieldSettings::transform

File

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

Class

ParagraphsFieldSettings
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') == 'paragraphs') {
    $value['target_type'] = 'paragraph';
  }
  return $value;
}