Step 3: Define the migration YML and map the Drupal fields. “ migrate” is key for the source database. Update the settings.php file for your Drupal site by moving to webroot -> sites -> default - > settings.php.Īdd the new database connection below the default connection as shown in the below screenshot. Next, we need to set up the source database from where we are extracting the data. We will be explaining the remaining in the next steps. These are the initial things needed for the module. See the below screenshot for the script.Ĭompany_employee_migrate.module : This will be used for defining the general hooks for the site. In our case, we are deleting the migration configuration when the module is uninstalled. The module structure is as follows:Ĭompany_employee_ : Consists of basic information regarding the module and its dependencies.Ĭompany_employee_migrate.install : This will be used for writing PHP scripts that should trigger while installing and uninstalling the module. Here we are creating a module called “ company employee migrate”. Check this detailed blog for creating custom modules in Drupal 8. Step 1: Create a custom module for the Drupal 8 migration.įirst, let’s create a custom module as you create in Drupal 8. Run migration using the drush command line tool. Process single value, multi-value and address fields.Ħ. Define the migration YML and map the identified Drupal fields.ĥ. Create a custom module for the migration.ģ. Following are the steps we will take to migrate to Drupal 8 -ġ. In this blog, we will be migrating users to a Drupal 8 site.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |