class ParagraphsFieldSettings

Configure field instance settings for paragraphs.

Plugin annotation


@MigrateProcessPlugin(
  id = "paragraphs_field_settings"
)

Hierarchy

Expanded class hierarchy of ParagraphsFieldSettings

1 file declares its use of ParagraphsFieldSettings

File

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

Namespace

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

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

}

Members