function File::fields

Same name in this branch
  1. 9 core/modules/file/src/Plugin/migrate/source/d7/File.php \Drupal\file\Plugin\migrate\source\d7\File::fields()
Same name in other branches
  1. 8.9.x core/modules/file/src/Plugin/migrate/source/d6/File.php \Drupal\file\Plugin\migrate\source\d6\File::fields()
  2. 8.9.x core/modules/file/src/Plugin/migrate/source/d7/File.php \Drupal\file\Plugin\migrate\source\d7\File::fields()
  3. 10 core/modules/file/src/Plugin/migrate/source/d6/File.php \Drupal\file\Plugin\migrate\source\d6\File::fields()
  4. 10 core/modules/file/src/Plugin/migrate/source/d7/File.php \Drupal\file\Plugin\migrate\source\d7\File::fields()
  5. 11.x core/modules/file/src/Plugin/migrate/source/d6/File.php \Drupal\file\Plugin\migrate\source\d6\File::fields()
  6. 11.x core/modules/file/src/Plugin/migrate/source/d7/File.php \Drupal\file\Plugin\migrate\source\d7\File::fields()

Overrides MigrateSourceInterface::fields

File

core/modules/file/src/Plugin/migrate/source/d6/File.php, line 105

Class

File
Drupal 6 file source from database.

Namespace

Drupal\file\Plugin\migrate\source\d6

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.'),
        'file_directory_path' => $this->t('The Drupal files path.'),
        'is_public' => $this->t('TRUE if the files directory is public otherwise FALSE.'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.