From b5c2b72412517eed8dcf3ed111e18709557c648b Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 5 May 2020 17:33:20 +0100 Subject: [PATCH] Add the tag term migration --- .../migrate_plus.migration.tag_term.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 web/modules/custom/custom/migrations/migrate_plus.migration.tag_term.yml diff --git a/web/modules/custom/custom/migrations/migrate_plus.migration.tag_term.yml b/web/modules/custom/custom/migrations/migrate_plus.migration.tag_term.yml new file mode 100644 index 0000000..e1672a1 --- /dev/null +++ b/web/modules/custom/custom/migrations/migrate_plus.migration.tag_term.yml @@ -0,0 +1,27 @@ +id: tag_term + +source: + plugin: url + data_fetcher_plugin: http + data_parser_plugin: json + urls: https://deploy-preview-213--opdavies.netlify.app/tags.json + ids: + id: + type: integer + item_selector: tags/ + fields: + - + name: id + selector: id + label: Tag ID + - + name: name + selector: name + label: Name + +process: + name: name + +destination: + plugin: 'entity:taxonomy_term' + default_bundle: tags