Commit c289b008 authored by arknoll's avatar arknoll Committed by mikeryan
Browse files

Issue #2714357 by arknoll, mikeryan: Update migrate plus migrate URL plugin...

Issue #2714357 by arknoll, mikeryan: Update migrate plus migrate URL plugin and SourcePluginExtension to work with 8.1.0
parent 5c7e48e4
# This migration demonstrates importing from a monolithic JSON file.
id: wine_role_json
label: JSON feed of roles (positions)
third_party_settings:
migrate_plus:
migration_group: wine
migration_group: wine
source:
# We use the JSON source plugin.
plugin: url
......
# This migration demonstrates importing from a monolithic XML file.
id: wine_role_xml
label: XML feed of roles (positions)
third_party_settings:
migrate_plus:
migration_group: wine
migration_group: wine
source:
# We use the XML data parser plugin.
plugin: url
......
id: wine_terms
label: Migrate all categories into Drupal taxonomy terms
third_party_settings:
migrate_plus:
migration_group: wine
migration_group: wine
source:
plugin: wine_term
destination:
......
......@@ -2,9 +2,7 @@
# containing individual item data.
id: wine_variety_list
label: XML feed of varieties
third_party_settings:
migrate_plus:
migration_group: wine
migration_group: wine
source:
# We use the XML source plugin.
plugin: xml
......
# This migration demonstrates importing from multiple XML files.
id: wine_variety_multi_xml
label: XML feed of varieties
third_party_settings:
migrate_plus:
migration_group: wine
migration_group: wine
source:
# We use the XML source plugin.
plugin: url
......
......@@ -5,7 +5,7 @@
* Install, update and uninstall functions for the migrate_example_advanced module.
*/
use Drupal\migrate\Entity\Migration;
use Drupal\migrate_plus\Entity\Migration;
/**
* Implements hook_install().
......@@ -16,7 +16,7 @@ function migrate_example_advanced_install() {
// use. So, in the .yml files we provide the REST resources relative to the
// site root and here rewrite them to fully-qualified paths.
/** @var \Drupal\migrate\Entity\MigrationInterface $wine_role_xml_migration */
/** @var \Drupal\migrate_plus\Entity\MigrationInterface $wine_role_xml_migration */
$wine_role_xml_migration = Migration::load('wine_role_xml');
if ($wine_role_xml_migration) {
$source = $wine_role_xml_migration->get('source');
......@@ -25,7 +25,7 @@ function migrate_example_advanced_install() {
$wine_role_xml_migration->set('source', $source);
$wine_role_xml_migration->save();
}
/** @var \Drupal\migrate\Entity\MigrationInterface $wine_role_json_migration */
/** @var \Drupal\migrate_plus\Entity\MigrationInterface $wine_role_json_migration */
$wine_role_json_migration = Migration::load('wine_role_json');
if ($wine_role_json_migration) {
$source = $wine_role_json_migration->get('source');
......@@ -34,7 +34,7 @@ function migrate_example_advanced_install() {
$wine_role_json_migration->set('source', $source);
$wine_role_json_migration->save();
}
/** @var \Drupal\migrate\Entity\MigrationInterface $wine_variety_multi_xml_migration */
/** @var \Drupal\migrate_plus\Entity\MigrationInterface $wine_variety_multi_xml_migration */
$wine_variety_multi_xml_migration = Migration::load('wine_variety_multi_xml');
if ($wine_variety_multi_xml_migration) {
$source = $wine_variety_multi_xml_migration->get('source');
......
......@@ -7,7 +7,7 @@
namespace Drupal\migrate_plus\Plugin\migrate\source;
use Drupal\migrate\Entity\MigrationInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Plugin\migrate\source\SourcePluginBase;
/**
......
......@@ -7,7 +7,7 @@
namespace Drupal\migrate_plus\Plugin\migrate\source;
use Drupal\migrate\Entity\MigrationInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate_plus\DataParserPluginInterface;
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment