Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. File.php

function File::fields

Same name in this branch
  1. 11.1.x core/modules/file/src/Plugin/migrate/source/d6/File.php \Drupal\file\Plugin\migrate\source\d6\File::fields()

Overrides MigrateSourceInterface::fields

File

core/modules/file/src/Plugin/migrate/source/d7/File.php, line 113

Class

File
Drupal 7 file source from database.

Namespace

Drupal\file\Plugin\migrate\source\d7

Code

public function fields() {
    return [
        'fid' => $this->t('File ID'),
        'uid' => $this->t('The {users}.uid who added the file. If set to 0, this file was added by an anonymous user.'),
        'filename' => $this->t('File name'),
        'filepath' => $this->t('File path'),
        'filemime' => $this->t('File MIME Type'),
        'status' => $this->t('The published status of a file.'),
        'timestamp' => $this->t('The time that the file was added.'),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal