MigrateDestinationInterface
interface MigrateDestinationInterface implements PluginInspectionInterface (View source)
Defines an interface for Migration Destination classes.
Destinations are responsible for persisting source data into the destination Drupal.
Methods
Gets the definition of the plugin implementation.
Gets the destination IDs.
Returns an array of destination fields.
Delete the specified destination object from the target Drupal.
Whether the destination can be rolled back or not.
The rollback action for the last imported item.
Gets the destination module handling the destination data.
Details
string
getPluginId()
Gets the plugin_id of the plugin instance.
array
getPluginDefinition()
Gets the definition of the plugin implementation.
array[]
getIds()
Gets the destination IDs.
To support MigrateIdMap maps, derived destination classes should return field definition(s) corresponding to the primary key of the destination being implemented. These are used to construct the destination key fields of the map table for a migration using this destination.
array
fields()
Returns an array of destination fields.
Derived classes must implement fields(), returning a list of available destination fields.
array|bool
import(Row $row, array $old_destination_id_values = [])
Import the row.
Derived classes must implement import(), to construct one new object (pre-populated) using ID mappings in the Migration.
rollback(array $destination_identifier)
Delete the specified destination object from the target Drupal.
bool
supportsRollback()
Whether the destination can be rolled back or not.
int
rollbackAction()
The rollback action for the last imported item.
string|null
getDestinationModule()
Gets the destination module handling the destination data.