You are here

public function MigrateDestinationFlagSimple::fields in Migrate Extras 7.2

Same name and namespace in other branches
  1. 6.2 flag.inc \MigrateDestinationFlagSimple::fields()

Derived classes must implement fields(), returning a list of available destination fields.

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

./flag.inc, line 94
Flag module integration

Class

MigrateDestinationFlagSimple
Destination class implementing when you want just an insert into flag_content table.

Code

public function fields() {
  return array(
    'fcid' => 'Flag content ID',
    'fid' => 'Flag ID',
    'content_type' => '',
    'content_id' => '',
    'uid' => 'User ID',
    'timestamp' => '',
  );
}