X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate_drupal%2Fsrc%2FPlugin%2FMigrateFieldInterface.php;h=96ed53e5c4155717380314a406fd62d0b98b2d68;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=c8cecad3338c6b75fdab23e0324274a6587aea2b;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php b/web/core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php index c8cecad33..96ed53e5c 100644 --- a/web/core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php +++ b/web/core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php @@ -17,7 +17,7 @@ interface MigrateFieldInterface extends PluginInspectionInterface { * @param \Drupal\migrate\Plugin\MigrationInterface $migration * The migration entity. */ - public function processField(MigrationInterface $migration); + public function alterFieldMigration(MigrationInterface $migration); /** * Apply any custom processing to the field instance migration. @@ -25,7 +25,7 @@ interface MigrateFieldInterface extends PluginInspectionInterface { * @param \Drupal\migrate\Plugin\MigrationInterface $migration * The migration entity. */ - public function processFieldInstance(MigrationInterface $migration); + public function alterFieldInstanceMigration(MigrationInterface $migration); /** * Apply any custom processing to the field widget migration. @@ -33,7 +33,7 @@ interface MigrateFieldInterface extends PluginInspectionInterface { * @param \Drupal\migrate\Plugin\MigrationInterface $migration * The migration entity. */ - public function processFieldWidget(MigrationInterface $migration); + public function alterFieldWidgetMigration(MigrationInterface $migration); /** * Apply any custom processing to the field formatter migration. @@ -41,18 +41,40 @@ interface MigrateFieldInterface extends PluginInspectionInterface { * @param \Drupal\migrate\Plugin\MigrationInterface $migration * The migration entity. */ - public function processFieldFormatter(MigrationInterface $migration); + public function alterFieldFormatterMigration(MigrationInterface $migration); + + /** + * Get the field formatter type from the source. + * + * @param \Drupal\migrate\Row $row + * The field being migrated. + * + * @return string + * The field formatter type. + */ + public function getFieldFormatterType(Row $row); /** * Get a map between D6 formatters and D8 formatters for this field type. * - * This is used by static::processFieldFormatter() in the base class. + * This is used by static::alterFieldFormatterMigration() in the base class. * * @return array * The keys are D6 formatters and the values are D8 formatters. */ public function getFieldFormatterMap(); + /** + * Get the field widget type from the source. + * + * @param \Drupal\migrate\Row $row + * The field being migrated. + * + * @return string + * The field widget type. + */ + public function getFieldWidgetType(Row $row); + /** * Get a map between D6 and D8 widgets for this field type. * @@ -71,7 +93,7 @@ interface MigrateFieldInterface extends PluginInspectionInterface { * @param array $data * The array of field data from FieldValues::fieldData(). */ - public function processFieldValues(MigrationInterface $migration, $field_name, $data); + public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data); /** * Computes the destination type of a migrated field.