diff options
author | Fahad Israr | 2019-07-03 13:14:25 +0530 |
---|---|---|
committer | Fahad Israr | 2019-07-03 13:14:25 +0530 |
commit | 35646d229739b283da6cf1e0958f1f7d28062442 (patch) | |
tree | 023063e370d0ddb297b3309860fd8da149f1871b /modules/fahad/notification/config/install/migrate_plus.migration.notifications.yml | |
parent | 96794064b20917436ce73aedf015a9d53e8d00fb (diff) | |
download | acadmix_distribution-35646d229739b283da6cf1e0958f1f7d28062442.tar.gz acadmix_distribution-35646d229739b283da6cf1e0958f1f7d28062442.tar.bz2 acadmix_distribution-35646d229739b283da6cf1e0958f1f7d28062442.zip |
Migration and View Files concatenated
Diffstat (limited to 'modules/fahad/notification/config/install/migrate_plus.migration.notifications.yml')
-rw-r--r-- | modules/fahad/notification/config/install/migrate_plus.migration.notifications.yml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/modules/fahad/notification/config/install/migrate_plus.migration.notifications.yml b/modules/fahad/notification/config/install/migrate_plus.migration.notifications.yml new file mode 100644 index 0000000..9b2ff05 --- /dev/null +++ b/modules/fahad/notification/config/install/migrate_plus.migration.notifications.yml @@ -0,0 +1,59 @@ +langcode: en +status: true +dependencies: { } +id: notifications +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV for Notifications' +source: + plugin: csv + path: /var/www/html/project/docroot/notification.csv + header_row_count: 1 + keys: + - id + constants: + file_source: /var/www/html/project/docroot/fac_images + file_dest: 'public://fac_images/' +process: + type: + plugin: default_value + default_value: notification + source_path_two: + - + plugin: skip_on_empty + method: process + source: file + - + plugin: concat + delimiter: / + source: + - constants/file_source + - file + title: title + body: body + field_notification_file: + plugin: file_import + source: '@source_path_two' + destination: constants/file_dest + field_notitfication_category: + - + plugin: entity_lookup + entity_type: taxonomy_term + bundle: notification_category + source: category + field_notification_date: + - + plugin: format_date + from_format: 'd/m/Y H:i:s' + to_format: 'Y-m-d\TH:i:s' + from_timezone: Asia/Kolkata + to_timezone: UTC + source: date +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } |