diff options
Diffstat (limited to 'modules/fahad/facility/config/install')
-rw-r--r-- | modules/fahad/facility/config/install/migrate_plus.migration.facilities.yml | 46 | ||||
-rw-r--r-- | modules/fahad/facility/config/install/views.view.facilities.yml | 212 |
2 files changed, 258 insertions, 0 deletions
diff --git a/modules/fahad/facility/config/install/migrate_plus.migration.facilities.yml b/modules/fahad/facility/config/install/migrate_plus.migration.facilities.yml new file mode 100644 index 0000000..37ea4de --- /dev/null +++ b/modules/fahad/facility/config/install/migrate_plus.migration.facilities.yml @@ -0,0 +1,46 @@ +langcode: en +status: true +dependencies: { } +id: facilities +class: null +field_plugin_method: null +cck_plugin_method: null +migration_tags: null +migration_group: null +label: 'Custom Content migration from CSV Facility' +source: + plugin: csv + path: /var/www/html/project/docroot/facility.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: facility + source_path: + - + plugin: skip_on_empty + method: process + source: phuto + - + plugin: concat + delimiter: / + source: + - constants/file_source + - phuto + title: title + body: body + field_facility_: email + field_facility_image: + plugin: file_import + source: '@source_path' + destination: constants/file_dest +destination: + plugin: 'entity:node' +migration_dependencies: + required: { } + optional: { } diff --git a/modules/fahad/facility/config/install/views.view.facilities.yml b/modules/fahad/facility/config/install/views.view.facilities.yml new file mode 100644 index 0000000..3049f64 --- /dev/null +++ b/modules/fahad/facility/config/install/views.view.facilities.yml @@ -0,0 +1,212 @@ +langcode: en +status: true +dependencies: + config: + - node.type.facility + - system.menu.main + module: + - node + - user + - views_bootstrap +id: facilities +label: Facilities +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: views_bootstrap_grid + options: + row_class: '' + default_row_class: true + uses_fields: false + alignment: horizontal + columns: '2' + col_xs: col-xs-6 + col_sm: col-sm-6 + col_md: col-md-6 + col_lg: col-lg-6 + row: + type: 'entity:node' + options: + relationship: none + view_mode: default + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + facility: facility + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: Facilities + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: facilities + menu: + type: normal + title: Facilities + description: '' + expanded: true + parent: '' + weight: -38 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } |