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@14: /** Chris@14: * {@inheritdoc} Chris@14: */ Chris@14: public function processDefinition(&$definition, $plugin_id) { Chris@14: parent::processDefinition($definition, $plugin_id); Chris@14: Chris@14: foreach (['core', 'source_module', 'destination_module'] as $required_property) { Chris@14: if (empty($definition[$required_property])) { Chris@14: throw new BadPluginDefinitionException($plugin_id, $required_property); Chris@14: } Chris@14: } Chris@14: } Chris@14: Chris@0: }