Chris@0: getPluginDefinition()['migration_tags'])) { Chris@0: foreach ($migration->getPluginDefinition()['migration_tags'] as $tag) { Chris@0: if ($tag == 'Drupal 7') { Chris@0: $core = 7; Chris@0: } Chris@0: } Chris@0: } Chris@0: Chris@0: $definitions = $this->getDefinitions(); Chris@0: foreach ($definitions as $plugin_id => $definition) { Chris@0: if (in_array($core, $definition['core'])) { Chris@0: if (array_key_exists($field_type, $definition['type_map']) || $field_type === $plugin_id) { Chris@0: return $plugin_id; Chris@0: } Chris@0: } Chris@0: } Chris@0: throw new PluginNotFoundException($field_type); Chris@0: } Chris@0: Chris@0: }