function NodeCompleteNodeRevisionLookup::transform
Same name in other branches
- 9 core/modules/migrate_drupal/src/Plugin/migrate/process/NodeCompleteNodeRevisionLookup.php \Drupal\migrate_drupal\Plugin\migrate\process\NodeCompleteNodeRevisionLookup::transform()
- 10 core/modules/migrate_drupal/src/Plugin/migrate/process/NodeCompleteNodeRevisionLookup.php \Drupal\migrate_drupal\Plugin\migrate\process\NodeCompleteNodeRevisionLookup::transform()
- 11.x core/modules/migrate_drupal/src/Plugin/migrate/process/NodeCompleteNodeRevisionLookup.php \Drupal\migrate_drupal\Plugin\migrate\process\NodeCompleteNodeRevisionLookup::transform()
Overrides ProcessPluginBase::transform
File
-
core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ process/ NodeCompleteNodeRevisionLookup.php, line 30
Class
- NodeCompleteNodeRevisionLookup
- Returns only the vid from migration_lookup on node_complete migration.
Namespace
Drupal\migrate_drupal\Plugin\migrate\processCode
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
if (is_array($value) && count($value) === 3) {
return $value[1];
}
return $value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.