You are here

public function Upload::fields in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/file/src/Plugin/migrate/source/d6/Upload.php \Drupal\file\Plugin\migrate\source\d6\Upload::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides MigrateSourceInterface::fields

File

core/modules/file/src/Plugin/migrate/source/d6/Upload.php, line 56
Contains \Drupal\file\Plugin\migrate\source\d6\Upload.

Class

Upload
Drupal 6 upload source from database.

Namespace

Drupal\file\Plugin\migrate\source\d6

Code

public function fields() {
  return array(
    'fid' => $this
      ->t('The file Id.'),
    'nid' => $this
      ->t('The node Id.'),
    'vid' => $this
      ->t('The version Id.'),
    'type' => $this
      ->t('The node type'),
    'description' => $this
      ->t('The file description.'),
    'list' => $this
      ->t('Whether the list should be visible on the node page.'),
    'weight' => $this
      ->t('The file weight.'),
  );
}