You are here

public function MigrateDestinationVariable::fields in Migrate 7.2

Returns a list of fields available to be mapped for variables.

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/variable.inc, line 44
Support for variable destinations.

Class

MigrateDestinationVariable
Destination class implementing migration into {variable}.

Code

public function fields($migration = NULL) {
  $fields = array(
    'name' => t('The name of the variable.'),
    'value' => t('The value of the variable.'),
  );
  return $fields;
}