diff options
author | Nitesh Kumar Sinha | 2019-08-19 11:14:26 +0530 |
---|---|---|
committer | GitHub | 2019-08-19 11:14:26 +0530 |
commit | f8d43f51937aae5240b2885108fd08efab768155 (patch) | |
tree | 998c1d749bf3533d24a4799b53c79413dfce7eba /modules/kalpesh/research_area1_ | |
parent | 58dbf8fcb04c01c338b9e346b8266690c8b92a2f (diff) | |
parent | 67eeae320422623bc2873b2c00afb8b29ec6160e (diff) | |
download | acadmix_distribution-f8d43f51937aae5240b2885108fd08efab768155.tar.gz acadmix_distribution-f8d43f51937aae5240b2885108fd08efab768155.tar.bz2 acadmix_distribution-f8d43f51937aae5240b2885108fd08efab768155.zip |
merge with Stage
Diffstat (limited to 'modules/kalpesh/research_area1_')
22 files changed, 1261 insertions, 0 deletions
diff --git a/modules/kalpesh/research_area1_/composer.json b/modules/kalpesh/research_area1_/composer.json new file mode 100644 index 0000000..c4858f4 --- /dev/null +++ b/modules/kalpesh/research_area1_/composer.json @@ -0,0 +1,13 @@ +{ + "name": "research_area1_", + "type": "drupal-module", + "description": "My Awesome Module", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/research_area1_", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/research_area1_", + "source": "http://cgit.drupalcode.org/research_area1_", + }, +} diff --git a/modules/kalpesh/research_area1_/config/install/core.base_field_override.node.research_area1_.promote.yml b/modules/kalpesh/research_area1_/config/install/core.base_field_override.node.research_area1_.promote.yml new file mode 100644 index 0000000..f98be1d --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.base_field_override.node.research_area1_.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.research_area1_ + enforced: + module: + - research_area1_ +id: node.research_area1_.promote +field_name: promote +entity_type: node +bundle: research_area1_ +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/research_area1_/config/install/core.entity_form_display.node.research_area1_.default.yml b/modules/kalpesh/research_area1_/config/install/core.entity_form_display.node.research_area1_.default.yml new file mode 100644 index 0000000..6c0ceb8 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.entity_form_display.node.research_area1_.default.yml @@ -0,0 +1,119 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.research_area1_.body + - field.field.node.research_area1_.field_image_research_area + - field.field.node.research_area1_.field_members + - field.field.node.research_area1_.field_publication_research_area + - image.style.image_h_400_w_600_ + - node.type.research_area1_ + module: + - image + - paragraphs + - path + - text + enforced: + module: + - research_area1_ +id: node.research_area1_.default +targetEntityType: node +bundle: research_area1_ +mode: default +content: + body: + type: text_textarea_with_summary + weight: 121 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_image_research_area: + weight: 122 + settings: + preview_image_style: image_h_400_w_600_ + progress_indicator: throbber + third_party_settings: { } + type: image_image + region: content + field_members: + weight: 125 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content + field_publication_research_area: + type: entity_reference_paragraphs + weight: 124 + settings: + title: Paragraph + title_plural: Paragraphs + edit_mode: open + add_mode: dropdown + form_display_mode: default + default_paragraph_type: '' + third_party_settings: { } + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.default.yml b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.default.yml new file mode 100644 index 0000000..ae7e7ff --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.default.yml @@ -0,0 +1,267 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.research_area1_.body + - field.field.node.research_area1_.field_image_research_area + - field.field.node.research_area1_.field_members + - field.field.node.research_area1_.field_publication_research_area + - node.type.research_area1_ + module: + - ds + - entity_reference_revisions + - slick + - text + - user + enforced: + module: + - research_area1_ +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - links + - field_image_research_area + - body + - field_members + - field_publication_research_area +id: node.research_area1_.default +targetEntityType: node +bundle: research_area1_ +mode: default +content: + body: + label: hidden + type: text_default + weight: 2 + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow: true + ow-el: div + ow-cl: col-sm-12 + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + region: ds_content + field_image_research_area: + weight: 1 + label: hidden + settings: + style: '' + optionset: node_img_slider + optionset_thumbnail: '' + skin: default + skin_thumbnail: '' + image_style: image_h_400_w_600_ + thumbnail_style: '' + responsive_image_style: '' + thumbnail_effect: '' + thumbnail_position: '' + media_switch: '' + ratio: '' + grid: null + grid_medium: null + grid_small: null + visible_items: null + layout: '' + thumbnail_caption: '' + cache: 0 + sizes: '' + breakpoints: + xs: + image_style: '' + width: '' + breakpoint: '' + sm: + image_style: '' + width: '' + breakpoint: '' + md: + image_style: '' + width: '' + breakpoint: '' + lg: + image_style: '' + width: '' + breakpoint: '' + xl: + image_style: '' + width: '' + breakpoint: '' + current_view_mode: default + background: false + caption: + title: '0' + alt: '0' + grid_header: '' + preserve_keys: false + override: false + overridables: + arrows: '0' + autoplay: '0' + dots: '0' + draggable: '0' + infinite: '0' + mouseWheel: '0' + randomize: '0' + variableWidth: '0' + skin_arrows: '' + skin_dots: '' + iframe_lazy: true + icon: '' + view_mode: '' + box_caption: '' + box_caption_custom: '' + box_style: '' + box_media_style: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow-el: div + ow-cl: '' + ow-at: 'style="margin:auto"' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + type: slick_image + region: ds_content + field_members: + weight: 3 + label: inline + settings: + link: true + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis: true + fis-el: div + fis-cl: 'col-sm-10 ' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: entity_reference_label + region: ds_content + field_publication_research_area: + type: entity_reference_revisions_entity_view + weight: 4 + label: inline + settings: + view_mode: default + link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-12 fw-bold text-center' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row ' + ow-at: '' + fis-el: div + fis-cl: ' col-sm-5 mt-10 mb-10' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-6 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + region: ds_content + links: + weight: 0 + region: ds_content + settings: { } + third_party_settings: { } +hidden: + langcode: true diff --git a/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.teaser.yml b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.teaser.yml new file mode 100644 index 0000000..d75619b --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.research_area1_.body + - node.type.research_area1_ + module: + - text + - user + enforced: + module: + - research_area1_ +id: node.research_area1_.teaser +targetEntityType: node +bundle: research_area1_ +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.body.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.body.yml new file mode 100644 index 0000000..19e8d8e --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.research_area1_ + module: + - text + enforced: + module: + - research_area1_ +id: node.research_area1_.body +field_name: body +entity_type: node +bundle: research_area1_ +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_image_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_image_research_area.yml new file mode 100644 index 0000000..db2b50c --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_image_research_area.yml @@ -0,0 +1,40 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_image_research_area + - node.type.research_area1_ + module: + - image + enforced: + module: + - research_area1_ +id: node.research_area1_.field_image_research_area +field_name: field_image_research_area +entity_type: node +bundle: research_area1_ +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: research + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_members.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_members.yml new file mode 100644 index 0000000..0964cc7 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_members.yml @@ -0,0 +1,31 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_members + - node.type.members + - node.type.research_area1_ + enforced: + module: + - research_area1_ +id: node.research_area1_.field_members +field_name: field_members +entity_type: node +bundle: research_area1_ +label: Members +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:node' + handler_settings: + target_bundles: + members: members + research_area1_: research_area1_ + sort: + field: _none + auto_create: false + auto_create_bundle: members +field_type: entity_reference diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_publication_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_publication_research_area.yml new file mode 100644 index 0000000..5a404fb --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_publication_research_area.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_publication_research_area + - node.type.research_area1_ + - paragraphs.paragraphs_type.publication + module: + - entity_reference_revisions + enforced: + module: + - research_area1_ +id: node.research_area1_.field_publication_research_area +field_name: field_publication_research_area +entity_type: node +bundle: research_area1_ +label: Publication +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:paragraph' + handler_settings: + negate: 0 + target_bundles: + publication: publication + target_bundles_drag_drop: + publication: + enabled: true + weight: 2 +field_type: entity_reference_revisions diff --git a/modules/kalpesh/research_area1_/config/install/field.storage.node.field_image_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_image_research_area.yml new file mode 100644 index 0000000..dfe6ad4 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_image_research_area.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node + enforced: + module: + - research_area1_ +id: node.field_image_research_area +field_name: field_image_research_area +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/research_area1_/config/install/field.storage.node.field_members.yml b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_members.yml new file mode 100644 index 0000000..2e694b6 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_members.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - research_area1_ +id: node.field_members +field_name: field_members +entity_type: node +type: entity_reference +settings: + target_type: node +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/research_area1_/config/install/field.storage.node.field_publication_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_publication_research_area.yml new file mode 100644 index 0000000..9ac5fec --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_publication_research_area.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - entity_reference_revisions + - node + - paragraphs + enforced: + module: + - research_area1_ +id: node.field_publication_research_area +field_name: field_publication_research_area +entity_type: node +type: entity_reference_revisions +settings: + target_type: paragraph +module: entity_reference_revisions +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/research_area1_/config/install/image.style.group_research_area_image.yml b/modules/kalpesh/research_area1_/config/install/image.style.group_research_area_image.yml new file mode 100644 index 0000000..b4c0f1f --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/image.style.group_research_area_image.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: group_research_area_image +label: 'Group Research area image' +effects: + 366cac20-7b38-410e-b508-129e23608539: + uuid: 366cac20-7b38-410e-b508-129e23608539 + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/research_area1_/config/install/image.style.image_h_400_w_600_.yml b/modules/kalpesh/research_area1_/config/install/image.style.image_h_400_w_600_.yml new file mode 100644 index 0000000..a2b3484 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/image.style.image_h_400_w_600_.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: image_h_400_w_600_ +label: 'image h:400 * w:600 ' +effects: + b6e987e1-7974-4e21-9f6f-df8cb3a8b21f: + uuid: b6e987e1-7974-4e21-9f6f-df8cb3a8b21f + id: image_scale_and_crop + weight: 1 + data: + width: 600 + height: 400 + anchor: center-center diff --git a/modules/kalpesh/research_area1_/config/install/node.type.research_area1_.yml b/modules/kalpesh/research_area1_/config/install/node.type.research_area1_.yml new file mode 100644 index 0000000..5ca91d5 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/node.type.research_area1_.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - research_area1_ +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: 'Research Area' +type: research_area1_ +description: '' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/research_area1_/config/install/paragraphs.paragraphs_type.publication.yml b/modules/kalpesh/research_area1_/config/install/paragraphs.paragraphs_type.publication.yml new file mode 100644 index 0000000..cbf517e --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/paragraphs.paragraphs_type.publication.yml @@ -0,0 +1,11 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - research_area1_ +id: publication +label: Publication +icon_uuid: null +description: '' +behavior_plugins: { } diff --git a/modules/kalpesh/research_area1_/config/install/views.view.research_area.yml b/modules/kalpesh/research_area1_/config/install/views.view.research_area.yml new file mode 100644 index 0000000..1162b54 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/views.view.research_area.yml @@ -0,0 +1,416 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - field.storage.node.field_image_research_area + - image.style.group_research_area_image + - node.type.research_area1_ + - system.menu.main + module: + - image + - node + - text + - user + enforced: + module: + - research_area1_ +id: research_area +label: 'Research Area' +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: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + 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 + quantity: 9 + style: + type: default + options: + grouping: { } + row_class: mb-30 + default_row_class: true + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + field_image_research_area: + id: field_image_research_area + table: node__field_image_research_area + field: field_image_research_area + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: image + settings: + image_style: group_research_area_image + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 1 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: h4 + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + 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 + entity_type: node + entity_field: title + plugin_id: field + body: + id: body + table: node__body + field: body + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: mb-20 + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: summary + type: text_trimmed + settings: + trim_length: 500 + 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 + plugin_id: field + view_node: + id: view_node + table: node + field: view_node + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: btn + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + text: 'read more' + output_url_as_text: false + absolute: false + entity_type: node + plugin_id: entity_link + 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: + research_area1_: research_area1_ + 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: 'Research Area' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + css_class: '' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_image_research_area' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: research-area + menu: + type: normal + title: 'Research Area' + 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: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_image_research_area' diff --git a/modules/kalpesh/research_area1_/research_area1_.info.yml b/modules/kalpesh/research_area1_/research_area1_.info.yml new file mode 100644 index 0000000..13e65d4 --- /dev/null +++ b/modules/kalpesh/research_area1_/research_area1_.info.yml @@ -0,0 +1,18 @@ +name: research_group +type: module +description: 'My Awesome Module' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:user + - drupal:node + - drupal:image + - paragraphs:paragraphs + - drupal:path + - drupal:text + - ds:ds + - entity_reference_revisions:entity_reference_revisions + - slick:slick + - drupal:file + diff --git a/modules/kalpesh/research_area1_/research_area1_.install b/modules/kalpesh/research_area1_/research_area1_.install new file mode 100644 index 0000000..65b64ff --- /dev/null +++ b/modules/kalpesh/research_area1_/research_area1_.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function research_area1__uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'research_area1_'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/research_area1_/research_area1_.module b/modules/kalpesh/research_area1_/research_area1_.module new file mode 100644 index 0000000..17b1175 --- /dev/null +++ b/modules/kalpesh/research_area1_/research_area1_.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains research_area1_.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function research_area1__help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the research_area1_ module. + case 'help.page.research_area1_': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('My Awesome Module') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function research_area1__theme() { + return [ + 'research_area1_' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/research_area1_/templates/research-area1-.html.twig b/modules/kalpesh/research_area1_/templates/research-area1-.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/research_area1_/templates/research-area1-.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/kalpesh/research_area1_/tests/src/Functional/LoadTest.php b/modules/kalpesh/research_area1_/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..b68de6f --- /dev/null +++ b/modules/kalpesh/research_area1_/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +<?php + +namespace Drupal\Tests\research_area1_\Functional; + +use Drupal\Core\Url; +use Drupal\Tests\BrowserTestBase; + +/** + * Simple test to ensure that main page loads with module enabled. + * + * @group research_area1_ + */ +class LoadTest extends BrowserTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['research_area1_']; + + /** + * A user with permission to administer site configuration. + * + * @var \Drupal\user\UserInterface + */ + protected $user; + + /** + * {@inheritdoc} + */ + protected function setUp() { + parent::setUp(); + $this->user = $this->drupalCreateUser(['administer site configuration']); + $this->drupalLogin($this->user); + } + + /** + * Tests that the home page loads with a 200 response. + */ + public function testLoad() { + $this->drupalGet(Url::fromRoute('<front>')); + $this->assertSession()->statusCodeEquals(200); + } + +} |