X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate_drupal%2Fsrc%2FPlugin%2FMigrateFieldInterface.php;fp=web%2Fcore%2Fmodules%2Fmigrate_drupal%2Fsrc%2FPlugin%2FMigrateFieldInterface.php;h=2aac5d18eb36a81c0acaa5c095725d722d77b76f;hp=c8cecad3338c6b75fdab23e0324274a6587aea2b;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php b/web/core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php index c8cecad33..2aac5d18e 100644 --- a/web/core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php +++ b/web/core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php @@ -43,6 +43,17 @@ interface MigrateFieldInterface extends PluginInspectionInterface { */ public function processFieldFormatter(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. * @@ -53,6 +64,17 @@ interface MigrateFieldInterface extends PluginInspectionInterface { */ 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. *