Chris@0: init) { Chris@0: $this->init = TRUE; Chris@0: $definition['source'] = [ Chris@0: 'plugin' => 'profile_field', Chris@0: 'ignore_map' => TRUE, Chris@0: ] + $this->source; Chris@0: $definition['destination']['plugin'] = 'null'; Chris@14: $definition['idMap']['plugin'] = 'null'; Chris@0: try { Chris@0: $profile_field_migration = $this->migrationPluginManager->createStubMigration($definition); Chris@0: $source_plugin = $profile_field_migration->getSourcePlugin(); Chris@0: $source_plugin->checkRequirements(); Chris@0: foreach ($source_plugin as $row) { Chris@0: $name = $row->getSourceProperty('name'); Chris@0: $this->process[$name] = $name; Chris@0: } Chris@0: } Chris@0: catch (RequirementsException $e) { Chris@0: // The checkRequirements() call will fail when the profile module does Chris@0: // not exist on the source site. Chris@0: } Chris@0: } Chris@0: return parent::getProcess(); Chris@0: } Chris@0: Chris@0: }