function NullDestination::import
Same name and namespace in other branches
- 9 core/modules/migrate/src/Plugin/migrate/destination/NullDestination.php \Drupal\migrate\Plugin\migrate\destination\NullDestination::import()
- 8.9.x core/modules/migrate/src/Plugin/migrate/destination/NullDestination.php \Drupal\migrate\Plugin\migrate\destination\NullDestination::import()
- 11.x core/modules/migrate/src/Plugin/migrate/destination/NullDestination.php \Drupal\migrate\Plugin\migrate\destination\NullDestination::import()
Import the row.
Derived classes must implement import(), to construct one new object (pre-populated) using ID mappings in the Migration.
Parameters
\Drupal\migrate\Row $row: The row object.
array $old_destination_id_values: (optional) The destination IDs from the previous import of this source row. This is empty the first time a source row is migrated. Defaults to an empty array.
Return value
array|bool An indexed array of destination IDs in the same order as defined in the plugin's getIds() method if the plugin wants to save the IDs to the ID map, TRUE to indicate success without saving IDs to the ID map, or FALSE to indicate a failure.
Overrides MigrateDestinationInterface::import
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ NullDestination.php, line 34
Class
- NullDestination
- Provides null destination plugin.
Namespace
Drupal\migrate\Plugin\migrate\destinationCode
public function import(Row $row, array $old_destination_id_values = []) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.