You are here

public function MigrateYoutubeFieldHandler::fields in YouTube Field 7

Implementation of MigrateFieldHandler::fields().

Parameters

string $type: The field type.

array $instance: Instance info for the field.

Migration|null $migration: The migration context for the parent field. We can look at the mappings and determine which subfields are relevant.

Return value

array Detail on the fields.

File

./youtube.migrate.inc, line 59
YouTube Field support for use with the migrate module.

Class

MigrateYoutubeFieldHandler
Extend MigrateFieldHandler for YouTube fields.

Code

public function fields($type, array $instance, $migration = NULL) {
  return array(
    'input' => t('Subfield: The full YouTube video URL'),
  );
}