You are here

public static function MigrateFile::fields in Migrate 7.2

Implementation of MigrateFileInterface::fields().

Return value

array

Overrides MigrateFileBase::fields

1 call to MigrateFile::fields()
MigrateFileUri::fields in plugins/destinations/file.inc
Implementation of MigrateFileInterface::fields().
1 method overrides MigrateFile::fields()
MigrateFileUri::fields in plugins/destinations/file.inc
Implementation of MigrateFileInterface::fields().

File

plugins/destinations/file.inc, line 240
Support for file entity as destination. Note that File Fields have their own destination in fields.inc

Class

MigrateFile
Base class for creating core file entities.

Code

public static function fields() {
  return parent::fields() + array(
    'destination_dir' => t('Subfield: <a href="@doc">Path within Drupal files directory to store file</a>', array(
      '@doc' => 'http://drupal.org/node/1540106#destination_dir',
    )),
    'destination_file' => t('Subfield: <a href="@doc">Path within destination_dir to store the file.</a>', array(
      '@doc' => 'http://drupal.org/node/1540106#destination_file',
    )),
    'file_replace' => t('Option: <a href="@doc">Value of $replace in that file function. Defaults to FILE_EXISTS_RENAME.</a>', array(
      '@doc' => 'http://drupal.org/node/1540106#file_replace',
    )),
  );
}