You are here

public function MigrateExampleMediaNodeMigration::prepare in Migrate Extras 7.2

Implementation of Migration::prepare().

File

migrate_extras_examples/migrate_extras_media/migrate_extras_media.migrate.inc, line 232
Examples and test fodder for migration of Media entities and fields.

Class

MigrateExampleMediaNodeMigration
Migration class for nodes with media fields.

Code

public function prepare($node, $row) {

  // This will replace any <img> tags in the body with the media module's
  // JSON references.
  MigrateDestinationMedia::rewriteImgTags($node);
}