public function MigrateFileInterface::processFile in Migrate 7.2
Create or link to a Drupal file entity.
Parameters
$value: A class-specific value (URI, pre-existing file ID, file blob, ...) representing file content.
$owner: uid of an account to be recorded as the file owner.
Return value
object File entity being created or referenced.
3 methods override MigrateFileInterface::processFile()
- MigrateFile::processFile in plugins/
destinations/ file.inc - Default implementation of MigrateFileInterface::processFiles().
- MigrateFileFid::processFile in plugins/
destinations/ file.inc - Implementation of MigrateFileInterface::processFile().
- MigrateFileUriAsIs::processFile in plugins/
destinations/ file.inc - Create or link to a Drupal file entity.
File
- plugins/
destinations/ file.inc, line 35 - Support for file entity as destination. Note that File Fields have their own destination in fields.inc
Class
- MigrateFileInterface
- Interface for taking some value representing a file and returning a Drupal file entity (creating the entity if necessary).
Code
public function processFile($value, $owner);