function FieldDiscovery::addEntityFieldProcesses
Same name in other branches
- 9 core/modules/migrate_drupal/src/FieldDiscovery.php \Drupal\migrate_drupal\FieldDiscovery::addEntityFieldProcesses()
- 10 core/modules/migrate_drupal/src/FieldDiscovery.php \Drupal\migrate_drupal\FieldDiscovery::addEntityFieldProcesses()
- 11.x core/modules/migrate_drupal/src/FieldDiscovery.php \Drupal\migrate_drupal\FieldDiscovery::addEntityFieldProcesses()
Overrides FieldDiscoveryInterface::addEntityFieldProcesses
1 call to FieldDiscovery::addEntityFieldProcesses()
- FieldDiscovery::addAllFieldProcesses in core/
modules/ migrate_drupal/ src/ FieldDiscovery.php - Adds the field processes to a migration.
File
-
core/
modules/ migrate_drupal/ src/ FieldDiscovery.php, line 130
Class
- FieldDiscovery
- Provides field discovery for Drupal 6 & 7 migrations.
Namespace
Drupal\migrate_drupalCode
public function addEntityFieldProcesses(MigrationInterface $migration, $entity_type_id) {
$core = $this->getCoreVersion($migration);
$fields = $this->getAllFields($core);
if (!empty($fields[$entity_type_id]) && is_array($fields[$entity_type_id])) {
foreach ($fields[$entity_type_id] as $bundle => $fields) {
$this->addBundleFieldProcesses($migration, $entity_type_id, $bundle);
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.