public function MigrateDestinationTable::fields in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/destinations/table.inc \MigrateDestinationTable::fields()
Returns a list of fields available to be mapped.
Parameters
Migration $migration: Optionally, the migration containing this destination.
Return value
array Keys: machine names of the fields (to be passed to addFieldMapping) Values: Human-friendly descriptions of the fields.
Overrides MigrateDestination::fields
File
- plugins/
destinations/ table.inc, line 169 - Support for tables defined through the Schema API.
Class
- MigrateDestinationTable
- Destination class implementing migration into a single table defined through the Schema API.
Code
public function fields($migration = NULL) {
$fields = array();
foreach ($this->schema['fields'] as $column => $schema) {
$fields[$column] = t('!type', array(
'!type' => $schema['type'],
));
}
return $fields;
}