You are here

abstract public function MigrateDestination::fields in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 includes/destination.inc \MigrateDestination::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.

11 methods override MigrateDestination::fields()
MigrateDestinationComment::fields in plugins/destinations/comment.inc
Returns a list of fields available to be mapped for comments attached to a particular bundle (node type)
MigrateDestinationCustomBlock::fields in plugins/destinations/block_custom.inc
Returns a list of fields available to be mapped for custom blocks.
MigrateDestinationFile::fields in plugins/destinations/file.inc
Returns a list of fields available to be mapped for the entity type (bundle)
MigrateDestinationMenu::fields in plugins/destinations/menu.inc
Returns a list of fields available to be mapped for menus.
MigrateDestinationMenuLinks::fields in plugins/destinations/menu_links.inc
Returns a list of fields available to be mapped for menu links.

... See full list

File

includes/destination.inc, line 45
Defines base for migration destinations.

Class

MigrateDestination
Abstract base class for destination handling.

Code

public abstract function fields();