X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate_drupal%2Fsrc%2FPlugin%2FMigrateFieldInterface.php;h=2aac5d18eb36a81c0acaa5c095725d722d77b76f;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;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..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. *