class FieldCollectionFieldSettings

Configure field instance settings for paragraphs.

Plugin annotation


@MigrateProcessPlugin(
  id = "field_collection_field_settings"
)

Hierarchy

Expanded class hierarchy of FieldCollectionFieldSettings

1 file declares its use of FieldCollectionFieldSettings

File

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

Namespace

Drupal\paragraphs\Plugin\migrate\process
View source
class FieldCollectionFieldSettings extends ProcessPluginBase {

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

}

Members