getPluginDefinition()['migration_tags'])) { foreach ($migration->getPluginDefinition()['migration_tags'] as $tag) { if ($tag == 'Drupal 7') { $core = 7; } } } $definitions = $this->getDefinitions(); foreach ($definitions 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); } /** * {@inheritdoc} */ public function processDefinition(&$definition, $plugin_id) { parent::processDefinition($definition, $plugin_id); foreach (['core', 'source_module', 'destination_module'] as $required_property) { if (empty($definition[$required_property])) { throw new BadPluginDefinitionException($plugin_id, $required_property); } } } }