/**
  * {@inheritdoc}
  */
 public function getPluginIdFromFieldType($field_type, array $configuration = [], MigrationInterface $migration = NULL)
 {
     $core = static::DEFAULT_CORE_VERSION;
     if (!empty($configuration['core'])) {
         $core = $configuration['core'];
     } elseif (!empty($migration->getPluginDefinition()['migration_tags'])) {
         foreach ($migration->getPluginDefinition()['migration_tags'] as $tag) {
             if ($tag == 'Drupal 7') {
                 $core = 7;
             }
         }
     }
     foreach ($this->getDefinitions() as $plugin_id => $definition) {
         if (in_array($core, $definition['core'])) {
             if (array_key_exists($field_type, $definition['type_map']) || $field_type === $plugin_id) {
                 return $plugin_id;
             }
         }
     }
     throw new PluginNotFoundException($field_type);
 }