Configure field instance settings for paragraphs.
@MigrateProcessPlugin(
id = "paragraphs_field_settings"
)
Expanded class hierarchy of ParagraphsFieldSettings
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;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParagraphsFieldSettings:: |
public | function |