Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/src/Plugin/migrate/User.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
19 $definition['source'] = [ | 19 $definition['source'] = [ |
20 'entity_type' => 'user', | 20 'entity_type' => 'user', |
21 'ignore_map' => TRUE, | 21 'ignore_map' => TRUE, |
22 ] + $this->source; | 22 ] + $this->source; |
23 $definition['destination']['plugin'] = 'null'; | 23 $definition['destination']['plugin'] = 'null'; |
24 $definition['idMap']['plugin'] = 'null'; | |
24 if (\Drupal::moduleHandler()->moduleExists('field')) { | 25 if (\Drupal::moduleHandler()->moduleExists('field')) { |
25 $definition['source']['plugin'] = 'd7_field_instance'; | 26 $definition['source']['plugin'] = 'd7_field_instance'; |
26 $field_migration = $this->migrationPluginManager->createStubMigration($definition); | 27 $field_migration = $this->migrationPluginManager->createStubMigration($definition); |
27 foreach ($field_migration->getSourcePlugin() as $row) { | 28 foreach ($field_migration->getSourcePlugin() as $row) { |
28 $field_name = $row->getSourceProperty('field_name'); | 29 $field_name = $row->getSourceProperty('field_name'); |