Chris@0: init) { Chris@0: $this->init = TRUE; Chris@18: $this->fieldDiscovery->addEntityFieldProcesses($this, 'user'); Chris@18: Chris@18: $definition = [ Chris@18: 'source' => [ Chris@18: 'plugin' => 'profile_field', Chris@18: 'ignore_map' => TRUE, Chris@18: ], Chris@18: 'idMap' => [ Chris@18: 'plugin' => 'null', Chris@18: ], Chris@18: 'destination' => [ Chris@18: 'plugin' => 'null', Chris@18: ], Chris@18: ]; Chris@0: try { Chris@0: $profile_migration = $this->migrationPluginManager->createStubMigration($definition); Chris@0: // Ensure that Profile is enabled in the source DB. Chris@0: $profile_migration->checkRequirements(); Chris@0: foreach ($profile_migration->getSourcePlugin() 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: }