You are here

public function UploadInstance::fields in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/src/Plugin/migrate/source/d6/UploadInstance.php \Drupal\file\Plugin\migrate\source\d6\UploadInstance::fields()
  2. 9 core/modules/file/src/Plugin/migrate/source/d6/UploadInstance.php \Drupal\file\Plugin\migrate\source\d6\UploadInstance::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/UploadInstance.php, line 72

Class

UploadInstance
Drupal 6 upload instance source from database.

Namespace

Drupal\file\Plugin\migrate\source\d6

Code

public function fields() {
  return [
    'node_type' => $this
      ->t('Node type'),
    'max_filesize' => $this
      ->t('Max filesize'),
    'file_extensions' => $this
      ->t('File extensions'),
  ];
}