Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Review the Migrate Example Modules

Video loading...

Transcript language code: 

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:01
    Review the Migrate Example Modules, with Joe Shindelar
  • 0:08
    JOE SHINDELAR: In addition to the extensive documentation
  • 0:10
    on for the migrate module there's also some really great
  • 0:14
    example code provided with the module itself.
  • 0:17
    In this lesson, what I'd like to do is take a look at that code.
  • 0:20
    We're going to locate the code in the migrate module
  • 0:23
    and talk about what each of those examples is and how it works.
  • 0:27
    We're going to look at the beer example
  • 0:30
    and talk about how we can map the concepts
  • 0:32
    and terminology that we've learned about migrations to actual code,

Review the Migrate Example Modules


The Migrate module itself contains some excellent examples of data migrations implementing the various APIs provided by the module and serves as the canonical documentation for how to write a migration. In this lesson we'll take a look at the beer and wine import examples provided with the migrate module as a way to familiarize ourselves with the concepts discussed earlier and to be able to see the code that makes up a basic migration before attempting to write our own. In practice these examples serve as a great starting point and can often times be copy/pasted and adjusted for your own needs.

Additional resources: