public static function MigrateFileUri::fields in Migrate 7.2
Implementation of MigrateFileInterface::fields().
Return value
array
Overrides MigrateFile::fields
File
- plugins/
destinations/ file.inc, line 378 - Support for file entity as destination. Note that File Fields have their own destination in fields.inc
Class
- MigrateFileUri
- Handle cases where we're handed a URI, or local filespec, representing a file to be imported to Drupal.
Code
public static function fields() {
return parent::fields() + array(
'source_dir' => t('Subfield: <a href="@doc">Path to source file.</a>', array(
'@doc' => 'http://drupal.org/node/1540106#source_dir',
)),
'urlencode' => t('Option: <a href="@doc">Encode all segments of the incoming path (defaults to TRUE).</a>', array(
'@doc' => 'http://drupal.org/node/1540106#urlencode',
)),
);
}