3 namespace Drupal\migrate_drupal\Plugin;
5 use Drupal\migrate\Plugin\MigratePluginManagerInterface;
6 use Drupal\migrate\Plugin\MigrationInterface;
8 interface MigrateFieldPluginManagerInterface extends MigratePluginManagerInterface {
11 * Get the plugin ID from the field type.
13 * @param string $field_type
14 * The field type being migrated.
15 * @param array $configuration
16 * (optional) An array of configuration relevant to the plugin instance.
17 * @param \Drupal\migrate\Plugin\MigrationInterface|null $migration
18 * (optional) The current migration instance.
21 * The ID of the plugin for the field_type if available.
23 * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
24 * If the plugin cannot be determined, such as if the field type is invalid.
26 public function getPluginIdFromFieldType($field_type, array $configuration = [], MigrationInterface $migration = NULL);