You are here

public function MigrateDestinationTable::fields in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/destinations/table.inc \MigrateDestinationTable::fields()

Returns a list of fields available to be mapped.

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 164
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() {
  $fields = array();
  foreach ($this->schema['fields'] as $column => $schema) {
    $fields[$column] = t('Type: !type', array(
      '!type' => $schema['type'],
    ));
  }
  return $fields;
}