MigrateSourceInterface
interface MigrateSourceInterface implements Countable, Iterator, PluginInspectionInterface (View source)
Defines an interface for migrate sources.
Methods
Gets the definition of the plugin implementation.
Returns available fields on the source.
Allows class to decide how it will react when it is treated like a string.
Defines the source fields uniquely identifying a source row.
Gets the source module providing the source data.
Details
string
getPluginId()
Gets the plugin_id of the plugin instance.
array
getPluginDefinition()
Gets the definition of the plugin implementation.
array
fields()
Returns available fields on the source.
bool
prepareRow(Row $row)
Adds additional data to the row.
__toString()
Allows class to decide how it will react when it is treated like a string.
array[]
getIds()
Defines the source fields uniquely identifying a source row.
None of these fields should contain a NULL value. If necessary, use prepareRow() or hook_migrate_prepare_row() to rewrite NULL values to appropriate empty values (such as '' or 0).
string|null
getSourceModule()
Gets the source module providing the source data.