You are here

public function FileEntityItem::fields in Media Migration 8

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

src/Plugin/migrate/source/d7/FileEntityItem.php, line 152

Class

FileEntityItem
File Entity Item source plugin.

Namespace

Drupal\media_migration\Plugin\migrate\source\d7

Code

public function fields() {

  // Fields provided by file_admin module are only included here for developer
  // convenience so that they can be adjusted by altering the generated
  // migration plugins.
  $fields = [
    'fid' => $this
      ->t('The file identifier'),
    'uid' => $this
      ->t('The user identifier'),
    'filename' => $this
      ->t('The file name'),
    'uri' => $this
      ->t('The URI of the file'),
    'filemime' => $this
      ->t('The file mimetype'),
    'filesize' => $this
      ->t('The file size'),
    'status' => $this
      ->t('The file status'),
    'timestamp' => $this
      ->t('The time that the file was added'),
    'type' => $this
      ->t('The file type'),
    'created' => $this
      ->t('The created timestamp - (if file_admin module is present in Drupal 7)'),
    'published' => $this
      ->t('The published timestamp - (if file_admin module is present in Drupal 7)'),
    'promote' => $this
      ->t('The promoted flag - (if file_admin module is present in Drupal 7)'),
    'sticky' => $this
      ->t('The sticky flag - (if file_admin module is present in Drupal 7)'),
    'vid' => $this
      ->t('The vid'),
    'image_field_alt' => $this
      ->t('The alternate text for the image (if this is a value of an image field)'),
    'image_field_text' => $this
      ->t('The title text for the image (if this is a value of an image field)'),
  ];
  return $fields;
}