You are here

interface MigrateFileInterface in Migrate 7.2

Interface for taking some value representing a file and returning a Drupal file entity (creating the entity if necessary).

Hierarchy

Expanded class hierarchy of MigrateFileInterface

All classes that implement MigrateFileInterface

File

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

View source
interface MigrateFileInterface {

  /**
   * Return a list of subfields and options specific to this implementation,
   * keyed by name.
   */
  public static function fields();

  /**
   * Create or link to a Drupal file entity.
   *
   * @param $value
   *  A class-specific value (URI, pre-existing file ID, file blob, ...)
   *  representing file content.
   *
   * @param $owner
   *  uid of an account to be recorded as the file owner.
   *
   * @return object
   *  File entity being created or referenced.
   */
  public function processFile($value, $owner);

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateFileInterface::fields public static function Return a list of subfields and options specific to this implementation, keyed by name. 1
MigrateFileInterface::processFile public function Create or link to a Drupal file entity. 3