Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / migrate_drupal / src / Plugin / MigrateFieldInterface.php
index c8cecad3338c6b75fdab23e0324274a6587aea2b..2aac5d18eb36a81c0acaa5c095725d722d77b76f 100644 (file)
@@ -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.
    *