Drupal investigation

README.txt 2.5KB

    <h2>INTRODUCTION</h2> <p>The migrate_example_advanced module demonstrates some techniques for Drupal 8 migrations beyond the basics in migrate_example. It includes a group of migrations with a wine theme.</p> <h2>SETUP</h2> <p>To demonstrate XML migrations as realistically as possible, the setup module provides the source data as REST services. So the migrations&#39; references to these services can be set up accurately, if you install migrate_example_advanced via drush be sure to use the --uri parameter, e.g.</p> <p>drush en -y migrate_example_advanced --uri=<a href="http://d8.local:8083/" rel="nofollow">http://d8.local:8083/</a></p> <h2>THE WINE SITE</h2> <p>In this scenario, we have a wine aficionado site which stores data in SQL tables as well is pulling in additional data from XML services.</p> <p>To make the example as simple as to run as possible, the SQL data is placed in tables directly in your Drupal database - in most real-world scenarios, your source data will be in an external database. The migrate_example_advanced_setup submodule creates and populates these tables, as well as configuring your Drupal 8 site (creating node types, vocabularies, fields, etc.) to receive the data, and providing service endpoints for XML data.</p> <h2>STRUCTURE</h2> <p>As with most custom migrations, there are two primary components to this example:</p> <ol> <li><p>Migration configuration, in the config/install directory. These YAML files describe the migration process and provide the mappings from the source data to Drupal&#39;s destination entities.</p></li> <li><p>Source plugins, in src/Plugin/migrate/source. These are referenced from the configuration files, and provide the source data to the migration processing pipeline, as well as manipulating that data where necessary to put it into a canonical form for migrations.</p></li> </ol> <h2>UNDERSTANDING THE MIGRATIONS</h2> <p>Basic techniques demonstrated in the migrate_example module are not rehashed here - it is expected that if you are learning Drupal 8 migration, you will study and understand those examples first, and use migrate_example_advanced to learn about specific techniques beyond those basics. This example doesn&#39;t have the narrative form of migrate_example - it&#39;s more of a grab-bag demonstrating varous features, and is more of a reference for, say, copying the code to set up an XML migration. An index of things demonstrated by this module:</p> <h2>Multiple vocabularies populated in one migration</h2> <p>See migrate_plus.migration.wine_terms.yml.</p> <h2>Importing from XML services</h2> <p>See migrate_plus.migration.wine_role_xml.yml.</p>