public function File::fields in Zircon Profile 8
Same name in this branch
- 8 core/modules/file/src/Plugin/migrate/source/d6/File.php \Drupal\file\Plugin\migrate\source\d6\File::fields()
- 8 core/modules/file/src/Plugin/migrate/source/d7/File.php \Drupal\file\Plugin\migrate\source\d7\File::fields()
Same name and namespace in other branches
- 8.0 core/modules/file/src/Plugin/migrate/source/d6/File.php \Drupal\file\Plugin\migrate\source\d6\File::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/ File.php, line 82 - Contains \Drupal\file\Plugin\migrate\source\d6\File.
Class
- File
- Drupal 6 file source from database.
Namespace
Drupal\file\Plugin\migrate\source\d6Code
public function fields() {
return array(
'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.'),
);
}