summaryrefslogtreecommitdiff
path: root/modules/mansimran/testimonials
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mansimran/testimonials')
-rw-r--r--modules/mansimran/testimonials/composer.json14
-rw-r--r--modules/mansimran/testimonials/config/install/core.entity_form_display.node.testimonials.default.yml115
-rw-r--r--modules/mansimran/testimonials/config/install/core.entity_view_display.node.testimonials.default.yml60
-rw-r--r--modules/mansimran/testimonials/config/install/core.entity_view_display.node.testimonials.teaser.yml39
-rw-r--r--modules/mansimran/testimonials/config/install/field.field.node.testimonials.body.yml24
-rw-r--r--modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_country_.yml31
-rw-r--r--modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_program_.yml31
-rw-r--r--modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_student_image.yml40
-rw-r--r--modules/mansimran/testimonials/config/install/field.storage.node.field_country_.yml23
-rw-r--r--modules/mansimran/testimonials/config/install/field.storage.node.field_program_.yml23
-rw-r--r--modules/mansimran/testimonials/config/install/field.storage.node.field_student_image.yml33
-rw-r--r--modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml63
-rw-r--r--modules/mansimran/testimonials/config/install/node.type.testimonials.yml20
-rw-r--r--modules/mansimran/testimonials/config/install/taxonomy.vocabulary.program_pursuing_.yml12
-rw-r--r--modules/mansimran/testimonials/config/install/views.view.student_testimonials.yml196
-rw-r--r--modules/mansimran/testimonials/templates/testimonials.html.twig1
-rw-r--r--modules/mansimran/testimonials/testimonials.info.yml14
-rw-r--r--modules/mansimran/testimonials/testimonials.install27
-rw-r--r--modules/mansimran/testimonials/testimonials.module35
-rw-r--r--modules/mansimran/testimonials/tests/src/Functional/LoadTest.php46
20 files changed, 847 insertions, 0 deletions
diff --git a/modules/mansimran/testimonials/composer.json b/modules/mansimran/testimonials/composer.json
new file mode 100644
index 0000000..a1f333e
--- /dev/null
+++ b/modules/mansimran/testimonials/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/testimonials",
+ "type": "drupal-module",
+ "description": "importing testimonials content type",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/testimonials",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/testimonials",
+ "source": "http://cgit.drupalcode.org/testimonials"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/testimonials/config/install/core.entity_form_display.node.testimonials.default.yml b/modules/mansimran/testimonials/config/install/core.entity_form_display.node.testimonials.default.yml
new file mode 100644
index 0000000..d8d23ef
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/core.entity_form_display.node.testimonials.default.yml
@@ -0,0 +1,115 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.testimonials.body
+ - field.field.node.testimonials.field_country_
+ - field.field.node.testimonials.field_program_
+ - field.field.node.testimonials.field_student_image
+ - image.style.thumbnail
+ - node.type.testimonials
+ module:
+ - image
+ - path
+ - text
+ enforced:
+ module:
+ - testimonials
+id: node.testimonials.default
+targetEntityType: node
+bundle: testimonials
+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_country_:
+ weight: 124
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ type: entity_reference_autocomplete
+ region: content
+ field_program_:
+ weight: 123
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ type: entity_reference_autocomplete
+ region: content
+ field_student_image:
+ weight: 122
+ settings:
+ progress_indicator: throbber
+ preview_image_style: thumbnail
+ third_party_settings: { }
+ type: image_image
+ 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/mansimran/testimonials/config/install/core.entity_view_display.node.testimonials.default.yml b/modules/mansimran/testimonials/config/install/core.entity_view_display.node.testimonials.default.yml
new file mode 100644
index 0000000..ad817dd
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/core.entity_view_display.node.testimonials.default.yml
@@ -0,0 +1,60 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.testimonials.body
+ - field.field.node.testimonials.field_country_
+ - field.field.node.testimonials.field_program_
+ - field.field.node.testimonials.field_student_image
+ - node.type.testimonials
+ module:
+ - image
+ - text
+ - user
+ enforced:
+ module:
+ - testimonials
+id: node.testimonials.default
+targetEntityType: node
+bundle: testimonials
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 102
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_country_:
+ weight: 103
+ label: above
+ settings:
+ link: true
+ third_party_settings: { }
+ type: entity_reference_label
+ region: content
+ field_program_:
+ weight: 104
+ label: above
+ settings:
+ link: true
+ third_party_settings: { }
+ type: entity_reference_label
+ region: content
+ field_student_image:
+ weight: 101
+ label: hidden
+ settings:
+ image_style: ''
+ image_link: ''
+ third_party_settings: { }
+ type: image
+ region: content
+ links:
+ weight: 100
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ langcode: true
diff --git a/modules/mansimran/testimonials/config/install/core.entity_view_display.node.testimonials.teaser.yml b/modules/mansimran/testimonials/config/install/core.entity_view_display.node.testimonials.teaser.yml
new file mode 100644
index 0000000..23307c3
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/core.entity_view_display.node.testimonials.teaser.yml
@@ -0,0 +1,39 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.testimonials.body
+ - field.field.node.testimonials.field_country_
+ - field.field.node.testimonials.field_program_
+ - field.field.node.testimonials.field_student_image
+ - node.type.testimonials
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - testimonials
+id: node.testimonials.teaser
+targetEntityType: node
+bundle: testimonials
+mode: teaser
+content:
+ body:
+ label: hidden
+ type: text_summary_or_trimmed
+ weight: 100
+ settings:
+ trim_length: 600
+ third_party_settings: { }
+ region: content
+ links:
+ weight: 101
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ field_country_: true
+ field_program_: true
+ field_student_image: true
+ langcode: true
diff --git a/modules/mansimran/testimonials/config/install/field.field.node.testimonials.body.yml b/modules/mansimran/testimonials/config/install/field.field.node.testimonials.body.yml
new file mode 100644
index 0000000..db74d78
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/field.field.node.testimonials.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.testimonials
+ module:
+ - text
+ enforced:
+ module:
+ - testimonials
+id: node.testimonials.body
+field_name: body
+entity_type: node
+bundle: testimonials
+label: Body
+description: 'Description of testimonial given by the student '
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_country_.yml b/modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_country_.yml
new file mode 100644
index 0000000..afc3421
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_country_.yml
@@ -0,0 +1,31 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_country_
+ - node.type.testimonials
+ - taxonomy.vocabulary.continent
+ enforced:
+ module:
+ - testimonials
+id: node.testimonials.field_country_
+field_name: field_country_
+entity_type: node
+bundle: testimonials
+label: 'country '
+description: 'Country from where the student originates from '
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ handler: 'default:taxonomy_term'
+ handler_settings:
+ target_bundles:
+ continent: continent
+ sort:
+ field: name
+ direction: asc
+ auto_create: false
+ auto_create_bundle: ''
+field_type: entity_reference
diff --git a/modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_program_.yml b/modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_program_.yml
new file mode 100644
index 0000000..b81de70
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_program_.yml
@@ -0,0 +1,31 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_program_
+ - node.type.testimonials
+ - taxonomy.vocabulary.program_pursuing_
+ enforced:
+ module:
+ - testimonials
+id: node.testimonials.field_program_
+field_name: field_program_
+entity_type: node
+bundle: testimonials
+label: 'Program '
+description: 'Gives information about the program he/she has completed or is pursuing'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ handler: 'default:taxonomy_term'
+ handler_settings:
+ target_bundles:
+ program_pursuing_: program_pursuing_
+ sort:
+ field: name
+ direction: asc
+ auto_create: false
+ auto_create_bundle: ''
+field_type: entity_reference
diff --git a/modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_student_image.yml b/modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_student_image.yml
new file mode 100644
index 0000000..ff85c59
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/field.field.node.testimonials.field_student_image.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_student_image
+ - node.type.testimonials
+ module:
+ - image
+ enforced:
+ module:
+ - testimonials
+id: node.testimonials.field_student_image
+field_name: field_student_image
+entity_type: node
+bundle: testimonials
+label: 'Student Image'
+description: 'Image of the student whose Testimonial is provided'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: testimonial
+ file_extensions: 'png gif jpg jpeg'
+ max_filesize: ''
+ max_resolution: ''
+ min_resolution: ''
+ alt_field: true
+ alt_field_required: true
+ 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/mansimran/testimonials/config/install/field.storage.node.field_country_.yml b/modules/mansimran/testimonials/config/install/field.storage.node.field_country_.yml
new file mode 100644
index 0000000..3dcf861
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/field.storage.node.field_country_.yml
@@ -0,0 +1,23 @@
+uuid: 26147ff6-1fae-4d52-9ec5-ae8de3abc6d3
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - taxonomy
+ enforced:
+ module:
+ - testimonials
+id: node.field_country_
+field_name: field_country_
+entity_type: node
+type: entity_reference
+settings:
+ target_type: taxonomy_term
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/testimonials/config/install/field.storage.node.field_program_.yml b/modules/mansimran/testimonials/config/install/field.storage.node.field_program_.yml
new file mode 100644
index 0000000..1f64f1b
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/field.storage.node.field_program_.yml
@@ -0,0 +1,23 @@
+uuid: 4e7598dc-e712-44a3-ba6c-c974f9e4cbef
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - taxonomy
+ enforced:
+ module:
+ - testimonials
+id: node.field_program_
+field_name: field_program_
+entity_type: node
+type: entity_reference
+settings:
+ target_type: taxonomy_term
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/testimonials/config/install/field.storage.node.field_student_image.yml b/modules/mansimran/testimonials/config/install/field.storage.node.field_student_image.yml
new file mode 100644
index 0000000..c60a819
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/field.storage.node.field_student_image.yml
@@ -0,0 +1,33 @@
+uuid: 207192cd-24c9-4e00-a74b-0acb1e96ad4f
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - image
+ - node
+ enforced:
+ module:
+ - testimonials
+id: node.field_student_image
+field_name: field_student_image
+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/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml b/modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml
new file mode 100644
index 0000000..8e509ba
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/migrate_plus.migration.testimonial_2.yml
@@ -0,0 +1,63 @@
+uuid: 0b678513-347b-4773-9731-1091e135dbda
+langcode: en
+status: true
+id: testimonial_2
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: testimonial_csv_import2
+source:
+ plugin: csv
+ path: /var/www/Testimonials/testimonial_sample.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/migrationdata/testimonials
+ file_dest: 'public://testimonials/'
+process:
+ type:
+ plugin: default_value
+ default_value: testimonials
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: photo
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - photo
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_student_image:
+ plugin: file_import
+ source: '@source_path'
+ destination: constants/file_dest
+ field_program_:
+ plugin: entity_lookup
+ entity_type: taxonomy_term
+ bundle: continent
+ source: country
+ field_country_:
+ plugin: entity_lookup
+ entity_type: taxonomy_term
+ bundle: program_pursuing_
+ source: program
+destination:
+ plugin: 'entity:node'
+ bundle: testimonials
+migration_dependencies:
+ required: { }
+ optional: { }
+
diff --git a/modules/mansimran/testimonials/config/install/node.type.testimonials.yml b/modules/mansimran/testimonials/config/install/node.type.testimonials.yml
new file mode 100644
index 0000000..daf5719
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/node.type.testimonials.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - testimonials
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: Testimonials
+type: testimonials
+description: 'This page will display the testimonial content of vit of various students'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/testimonials/config/install/taxonomy.vocabulary.program_pursuing_.yml b/modules/mansimran/testimonials/config/install/taxonomy.vocabulary.program_pursuing_.yml
new file mode 100644
index 0000000..65db2f8
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/taxonomy.vocabulary.program_pursuing_.yml
@@ -0,0 +1,12 @@
+uuid: 69a8ee92-8cfc-42b5-a695-c10a1586d295
+langcode: en
+status: true
+dependencies:
+ enforced:
+ module:
+ - testimonials
+name: 'Program pursuing/completed'
+vid: program_pursuing_
+description: 'This field gives informtion of the program he is pursuing in VIT'
+hierarchy: 0
+weight: 0
diff --git a/modules/mansimran/testimonials/config/install/views.view.student_testimonials.yml b/modules/mansimran/testimonials/config/install/views.view.student_testimonials.yml
new file mode 100644
index 0000000..31f81de
--- /dev/null
+++ b/modules/mansimran/testimonials/config/install/views.view.student_testimonials.yml
@@ -0,0 +1,196 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - node.type.testimonials
+ module:
+ - node
+ - user
+ enforced:
+ module:
+ - testimonials
+id: student_testimonials
+label: 'Student Testimonials'
+module: views
+description: 'Student Testimonials'
+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: 5
+ 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: default
+ row:
+ type: 'entity:node'
+ options:
+ relationship: none
+ view_mode: teaser
+ 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:
+ testimonials: testimonials
+ 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: 'Student Testimonials'
+ 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: student-testimonials
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - url.query_args
+ - 'user.node_grants:view'
+ - user.permissions
+ tags: { }
+
diff --git a/modules/mansimran/testimonials/templates/testimonials.html.twig b/modules/mansimran/testimonials/templates/testimonials.html.twig
new file mode 100644
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/testimonials/templates/testimonials.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/testimonials/testimonials.info.yml b/modules/mansimran/testimonials/testimonials.info.yml
new file mode 100644
index 0000000..61bf508
--- /dev/null
+++ b/modules/mansimran/testimonials/testimonials.info.yml
@@ -0,0 +1,14 @@
+name: 'testimonials'
+type: module
+description: 'importing testimonials content type'
+core: 8.x
+package: 'Custom'
+dependencies:
+ - drupal:node
+ - drupal:text
+ - drupal:user
+ - drupal:file
+ - drupal:menu_ui
+ - drupal:taxonomy
+ - drupal:image
+ - drupal:path \ No newline at end of file
diff --git a/modules/mansimran/testimonials/testimonials.install b/modules/mansimran/testimonials/testimonials.install
new file mode 100644
index 0000000..1a7482f
--- /dev/null
+++ b/modules/mansimran/testimonials/testimonials.install
@@ -0,0 +1,27 @@
+
+<?php
+/**
+* Implements hook_uninstall().
+*/
+function testimonials_uninstall() {
+ // 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', 'testimonials');
+ $nids = $query->execute();
+
+
+
+ // Delete entities.
+ if (!empty($nids)) {
+ $entities = $nodeStorage->loadMultiple($nids);
+ $nodeStorage->delete($entities);
+ }
+}
+
diff --git a/modules/mansimran/testimonials/testimonials.module b/modules/mansimran/testimonials/testimonials.module
new file mode 100644
index 0000000..fd3e3d1
--- /dev/null
+++ b/modules/mansimran/testimonials/testimonials.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains testimonials.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function testimonials_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the testimonials module.
+ case 'help.page.testimonials':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('importing testimonials content type') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function testimonials_theme() {
+ return [
+ 'testimonials' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/testimonials/tests/src/Functional/LoadTest.php b/modules/mansimran/testimonials/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..6adde24
--- /dev/null
+++ b/modules/mansimran/testimonials/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\testimonials\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group testimonials
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['testimonials'];
+
+ /**
+ * 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);
+ }
+
+}