You are here

public function MigrateDestinationFieldablePanelsPanes::fields in Fieldable Panels Panes (FPP) 7

Returns a list of fields available to be mapped for the FPP type (bundle).

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

includes/fieldable_panels_pane.migrate.inc, line 62
Support for fieldable_panels_pane destinations.

Class

MigrateDestinationFieldablePanelsPanes
Destination class implementing migration into fieldable panels panes.

Code

public function fields(Migration $migration = NULL) {
  $fields = array();

  // First the core (fieldable_panels_panes table) properties.
  $fields['fpid'] = t('The primary identifier for the entity.');
  $fields['vid'] = t('The current version in use for this entity.');
  $fields['bundle'] = t('The bundle of the entity.');
  $fields['title'] = t('The title of the entity.');
  $fields['link'] = t('Whether or not this entity title will link to another page.');
  $fields['path'] = t('The path the title should link to.');
  $fields['reusable'] = t('Whether or not this entity will appear in the Add Content dialog.');
  $fields['admin_title'] = t('The title it will appear in the Add Content dialog as.');
  $fields['admin_description'] = t('The description it will appear in the Add Content dialog with.');
  $fields['category'] = t('The category it will appear in the Add Content dialog under.');
  $fields['view_access'] = t('Access rules to describe if the user has view access to this entity.');
  $fields['edit_access'] = t('Access rules to describe if the user has view access to this entity.');
  $fields['created'] = t('The Unix timestamp when the entity was created.');
  $fields['changed'] = t('The Unix timestamp when the entity was most recently saved.');
  $fields['uuid'] = t('The Universally Unique Identifier.');
  $fields['language'] = t('The languages.language of this entity.');

  // Then add in anything provided by handlers.
  $fields += migrate_handler_invoke_all('Entity', 'fields', $this->entityType, $this->bundle, $migration);
  $fields += migrate_handler_invoke_all('FieldablePanelsPanes', 'fields', $this->entityType, $this->bundle, $migration);
  return $fields;
}