Pull merge.
[yaffs-website] / web / core / modules / migrate_drupal / src / Plugin / MigrateFieldPluginManagerInterface.php
1 <?php
2
3 namespace Drupal\migrate_drupal\Plugin;
4
5 use Drupal\migrate\Plugin\MigratePluginManagerInterface;
6 use Drupal\migrate\Plugin\MigrationInterface;
7
8 interface MigrateFieldPluginManagerInterface extends MigratePluginManagerInterface {
9
10   /**
11    * Get the plugin ID from the field type.
12    *
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.
19    *
20    * @return string
21    *   The ID of the plugin for the field_type if available.
22    *
23    * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
24    *   If the plugin cannot be determined, such as if the field type is invalid.
25    */
26   public function getPluginIdFromFieldType($field_type, array $configuration = [], MigrationInterface $migration = NULL);
27
28 }