You are here

public function MigrateDestinationCustomBlock::fields in Migrate 7.2

Returns a list of fields available to be mapped for custom blocks.

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/block_custom.inc, line 43
Support for custom block destinations.

Class

MigrateDestinationCustomBlock
Destination class implementing migration into {block_custom}.

Code

public function fields($migration = NULL) {
  $fields = array(
    'bid' => t('The custom block ID (bid).'),
    'body' => t('Block contents.'),
    'info' => t('Block description.'),
    'format' => t('The {filter_format}.format of the block body.'),
  );
  return $fields;
}