summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/mansimran/academic_research/academic_research.info.yml14
-rw-r--r--modules/mansimran/academic_research/academic_research.install27
-rw-r--r--modules/mansimran/academic_research/academic_research.module35
-rw-r--r--modules/mansimran/academic_research/composer.json14
-rw-r--r--modules/mansimran/academic_research/config/install/core.entity_form_display.node.academic_research_.default.yml108
-rw-r--r--modules/mansimran/academic_research/config/install/core.entity_view_display.node.academic_research_.default.yml51
-rw-r--r--modules/mansimran/academic_research/config/install/core.entity_view_display.node.academic_research_.teaser.yml33
-rw-r--r--modules/mansimran/academic_research/config/install/field.field.node.academic_research_.body.yml24
-rw-r--r--modules/mansimran/academic_research/config/install/field.field.node.academic_research_.field_lab_facilities.yml42
-rw-r--r--modules/mansimran/academic_research/config/install/field.field.node.academic_research_.field_school.yml31
-rw-r--r--modules/mansimran/academic_research/config/install/field.storage.node.field_lab_facilities.yml24
-rw-r--r--modules/mansimran/academic_research/config/install/field.storage.node.field_school.yml23
-rw-r--r--modules/mansimran/academic_research/config/install/migrate_plus.migration.acad_node_migration.yml61
-rw-r--r--modules/mansimran/academic_research/config/install/migrate_plus.migration.acad_paragraph_migration.yml48
-rw-r--r--modules/mansimran/academic_research/config/install/node.type.academic_research_.yml20
-rw-r--r--modules/mansimran/academic_research/config/install/paragraphs.paragraphs_type.lab_facilities.yml12
-rw-r--r--modules/mansimran/academic_research/config/install/taxonomy.vocabulary.school_s_of_vit_.yml12
-rw-r--r--modules/mansimran/academic_research/templates/academic-research.html.twig1
-rw-r--r--modules/mansimran/academic_research/tests/src/Functional/LoadTest.php46
-rw-r--r--modules/mansimran/administrative_offices/administrative_offices.info.yml5
-rw-r--r--modules/mansimran/administrative_offices/administrative_offices.install27
-rw-r--r--modules/mansimran/administrative_offices/administrative_offices.module35
-rw-r--r--modules/mansimran/administrative_offices/composer.json14
-rw-r--r--modules/mansimran/administrative_offices/config/install/core.entity_form_display.node.administrative_offices.default.yml95
-rw-r--r--modules/mansimran/administrative_offices/config/install/core.entity_view_display.node.administrative_offices.default.yml42
-rw-r--r--modules/mansimran/administrative_offices/config/install/core.entity_view_display.node.administrative_offices.teaser.yml35
-rw-r--r--modules/mansimran/administrative_offices/config/install/field.field.node.administrative_offices.body.yml24
-rw-r--r--modules/mansimran/administrative_offices/config/install/field.field.node.administrative_offices.field_office_.yml39
-rw-r--r--modules/mansimran/administrative_offices/config/install/field.storage.node.field_office_.yml24
-rw-r--r--modules/mansimran/administrative_offices/config/install/migrate_plus.migration.admin_para_migration.yml30
-rw-r--r--modules/mansimran/administrative_offices/config/install/migrate_plus.migration.adminoffice_1.yml57
-rw-r--r--modules/mansimran/administrative_offices/config/install/node.type.administrative_offices.yml20
-rw-r--r--modules/mansimran/administrative_offices/config/install/paragraphs.paragraphs_type.office_details.yml13
-rw-r--r--modules/mansimran/administrative_offices/templates/administrative-offices.html.twig1
-rw-r--r--modules/mansimran/administrative_offices/tests/src/Functional/LoadTest.php46
-rw-r--r--modules/mansimran/chapters/chapters.info.yml16
-rw-r--r--modules/mansimran/chapters/chapters.module35
-rw-r--r--modules/mansimran/chapters/chapters.routing.yml8
-rw-r--r--modules/mansimran/chapters/composer.json14
-rw-r--r--modules/mansimran/chapters/config/install/core.entity_form_display.node.student_chapter.default.yml115
-rw-r--r--modules/mansimran/chapters/config/install/core.entity_view_display.node.student_chapter.default.yml65
-rw-r--r--modules/mansimran/chapters/config/install/core.entity_view_display.node.student_chapter.teaser.yml39
-rw-r--r--modules/mansimran/chapters/config/install/field.field.node.student_chapter.body.yml24
-rw-r--r--modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_category.yml31
-rw-r--r--modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_facebook_link.yml25
-rw-r--r--modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_logo.yml40
-rw-r--r--modules/mansimran/chapters/config/install/field.storage.node.field_chapter_category.yml23
-rw-r--r--modules/mansimran/chapters/config/install/field.storage.node.field_chapter_facebook_link.yml22
-rw-r--r--modules/mansimran/chapters/config/install/field.storage.node.field_chapter_logo.yml33
-rw-r--r--modules/mansimran/chapters/config/install/migrate_plus.migration.chapters_1.yml58
-rw-r--r--modules/mansimran/chapters/config/install/node.type.student_chapter.yml20
-rw-r--r--modules/mansimran/chapters/config/install/taxonomy.vocabulary.chapter_category.yml12
-rw-r--r--modules/mansimran/chapters/src/Controller/chaptersController.php25
-rw-r--r--modules/mansimran/chapters/templates/chapters.html.twig1
-rw-r--r--modules/mansimran/chapters/tests/src/Functional/LoadTest.php46
-rw-r--r--modules/mansimran/fest/composer.json14
-rw-r--r--modules/mansimran/fest/config/install/core.entity_form_display.node.fest.default.yml114
-rw-r--r--modules/mansimran/fest/config/install/core.entity_view_display.node.fest.default.yml69
-rw-r--r--modules/mansimran/fest/config/install/core.entity_view_display.node.fest.teaser.yml39
-rw-r--r--modules/mansimran/fest/config/install/field.field.node.fest.body.yml24
-rw-r--r--modules/mansimran/fest/config/install/field.field.node.fest.field_fest_pics.yml40
-rw-r--r--modules/mansimran/fest/config/install/field.field.node.fest.field_fest_website.yml25
-rw-r--r--modules/mansimran/fest/config/install/field.field.node.fest.field_fest_youtube_link.yml25
-rw-r--r--modules/mansimran/fest/config/install/field.storage.node.field_fest_pics.yml33
-rw-r--r--modules/mansimran/fest/config/install/field.storage.node.field_fest_website.yml22
-rw-r--r--modules/mansimran/fest/config/install/field.storage.node.field_fest_youtube_link.yml22
-rw-r--r--modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml65
-rw-r--r--modules/mansimran/fest/config/install/node.type.fest.yml20
-rw-r--r--modules/mansimran/fest/fest.info.yml14
-rw-r--r--modules/mansimran/fest/fest.module35
-rw-r--r--modules/mansimran/fest/templates/fest.html.twig1
-rw-r--r--modules/mansimran/fest/tests/src/Functional/LoadTest.php46
-rw-r--r--modules/mansimran/international_transfer_program/composer.json14
-rw-r--r--modules/mansimran/international_transfer_program/config/install/core.entity_form_display.node.international_transfer_program.default.yml104
-rw-r--r--modules/mansimran/international_transfer_program/config/install/core.entity_view_display.node.international_transfer_program.default.yml54
-rw-r--r--modules/mansimran/international_transfer_program/config/install/core.entity_view_display.node.international_transfer_program.teaser.yml37
-rw-r--r--modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.body.yml24
-rw-r--r--modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.field_country.yml31
-rw-r--r--modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.field_link_.yml25
-rw-r--r--modules/mansimran/international_transfer_program/config/install/field.storage.node.field_country.yml23
-rw-r--r--modules/mansimran/international_transfer_program/config/install/field.storage.node.field_link_.yml22
-rw-r--r--modules/mansimran/international_transfer_program/config/install/node.type.international_transfer_program.yml20
-rw-r--r--modules/mansimran/international_transfer_program/config/install/taxonomy.vocabulary.continent.yml12
-rw-r--r--modules/mansimran/international_transfer_program/international_transfer_program.info.yml13
-rw-r--r--modules/mansimran/international_transfer_program/international_transfer_program.install27
-rw-r--r--modules/mansimran/international_transfer_program/international_transfer_program.module35
-rw-r--r--modules/mansimran/international_transfer_program/international_transfer_program.routing.yml8
-rw-r--r--modules/mansimran/international_transfer_program/src/Controller/itpController.php25
-rw-r--r--modules/mansimran/international_transfer_program/templates/international-transfer-program.html.twig1
-rw-r--r--modules/mansimran/international_transfer_program/tests/src/Functional/LoadTest.php46
-rwxr-xr-xmodules/mansimran/programs/composer.json14
-rwxr-xr-xmodules/mansimran/programs/config/install/core.entity_form_display.node.programs_offered.default.yml157
-rwxr-xr-xmodules/mansimran/programs/config/install/core.entity_view_display.node.programs_offered.default.yml101
-rwxr-xr-xmodules/mansimran/programs/config/install/core.entity_view_display.node.programs_offered.teaser.yml33
-rwxr-xr-xmodules/mansimran/programs/config/install/field.field.node.programs_offered.body.yml24
-rwxr-xr-xmodules/mansimran/programs/config/install/field.field.node.programs_offered.field_admission_procedure.yml23
-rwxr-xr-xmodules/mansimran/programs/config/install/field.field.node.programs_offered.field_check_list.yml23
-rwxr-xr-xmodules/mansimran/programs/config/install/field.field.node.programs_offered.field_counselling_procedure.yml23
-rwxr-xr-xmodules/mansimran/programs/config/install/field.field.node.programs_offered.field_eligibility.yml23
-rwxr-xr-xmodules/mansimran/programs/config/install/field.field.node.programs_offered.field_hostel_details.yml23
-rwxr-xr-xmodules/mansimran/programs/config/install/field.field.node.programs_offered.field_how_to_apply.yml23
-rwxr-xr-xmodules/mansimran/programs/config/install/field.field.node.programs_offered.field_information_brochure.yml25
-rwxr-xr-xmodules/mansimran/programs/config/install/field.field.node.programs_offered.field_required_documents.yml23
-rwxr-xr-xmodules/mansimran/programs/config/install/field.storage.node.field_admission_procedure.yml22
-rwxr-xr-xmodules/mansimran/programs/config/install/field.storage.node.field_check_list.yml22
-rwxr-xr-xmodules/mansimran/programs/config/install/field.storage.node.field_counselling_procedure.yml22
-rwxr-xr-xmodules/mansimran/programs/config/install/field.storage.node.field_eligibility.yml22
-rwxr-xr-xmodules/mansimran/programs/config/install/field.storage.node.field_hostel_details.yml22
-rwxr-xr-xmodules/mansimran/programs/config/install/field.storage.node.field_how_to_apply.yml22
-rwxr-xr-xmodules/mansimran/programs/config/install/field.storage.node.field_information_brochure.yml22
-rwxr-xr-xmodules/mansimran/programs/config/install/field.storage.node.field_required_documents.yml22
-rw-r--r--modules/mansimran/programs/config/install/migrate_plus.migration.programs_offered_1.yml63
-rwxr-xr-xmodules/mansimran/programs/config/install/node.type.programs_offered.yml20
-rwxr-xr-xmodules/mansimran/programs/programs.info.yml12
-rwxr-xr-xmodules/mansimran/programs/programs.module35
-rwxr-xr-xmodules/mansimran/programs/templates/programs.html.twig1
-rwxr-xr-xmodules/mansimran/programs/tests/src/Functional/LoadTest.php46
-rw-r--r--modules/mansimran/research_centers/composer.json14
-rw-r--r--modules/mansimran/research_centers/config/install/core.entity_form_display.node.research_centers.default.yml84
-rw-r--r--modules/mansimran/research_centers/config/install/core.entity_view_display.node.research_centers.default.yml31
-rw-r--r--modules/mansimran/research_centers/config/install/core.entity_view_display.node.research_centers.teaser.yml33
-rw-r--r--modules/mansimran/research_centers/config/install/field.field.node.research_centers.body.yml24
-rw-r--r--modules/mansimran/research_centers/config/install/migrate_plus.migration.research_center_1.yml45
-rw-r--r--modules/mansimran/research_centers/config/install/node.type.research_centers.yml20
-rw-r--r--modules/mansimran/research_centers/research_centers.info.yml10
-rw-r--r--modules/mansimran/research_centers/research_centers.module35
-rw-r--r--modules/mansimran/research_centers/templates/research-centers.html.twig1
-rw-r--r--modules/mansimran/research_centers/tests/src/Functional/LoadTest.php46
-rw-r--r--modules/mansimran/sae_teams/composer.json14
-rw-r--r--modules/mansimran/sae_teams/config/install/core.entity_form_display.node.sae_teams_.default.yml114
-rw-r--r--modules/mansimran/sae_teams/config/install/core.entity_view_display.node.sae_teams_.default.yml69
-rw-r--r--modules/mansimran/sae_teams/config/install/core.entity_view_display.node.sae_teams_.teaser.yml37
-rw-r--r--modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.body.yml24
-rw-r--r--modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_sae_facebook_link.yml25
-rw-r--r--modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_team_photo.yml40
-rw-r--r--modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_youtube_link.yml25
-rw-r--r--modules/mansimran/sae_teams/config/install/field.storage.node.field_sae_facebook_link.yml22
-rw-r--r--modules/mansimran/sae_teams/config/install/field.storage.node.field_team_photo.yml33
-rw-r--r--modules/mansimran/sae_teams/config/install/field.storage.node.field_youtube_link.yml22
-rw-r--r--modules/mansimran/sae_teams/config/install/migrate_plus.migration.sae_1.yml60
-rw-r--r--modules/mansimran/sae_teams/config/install/node.type.sae_teams_.yml20
-rw-r--r--modules/mansimran/sae_teams/sae_teams.info.yml14
-rw-r--r--modules/mansimran/sae_teams/sae_teams.install26
-rw-r--r--modules/mansimran/sae_teams/sae_teams.module35
-rw-r--r--modules/mansimran/sae_teams/sae_teams.routing.yml8
-rw-r--r--modules/mansimran/sae_teams/src/Controller/sae_teamsController.php25
-rw-r--r--modules/mansimran/sae_teams/templates/sae-teams.html.twig1
-rw-r--r--modules/mansimran/sae_teams/tests/src/Functional/LoadTest.php46
-rw-r--r--modules/mansimran/startups/composer.json14
-rw-r--r--modules/mansimran/startups/config/install/core.entity_form_display.node.startups.default.yml123
-rw-r--r--modules/mansimran/startups/config/install/core.entity_view_display.node.startups.default.yml82
-rw-r--r--modules/mansimran/startups/config/install/core.entity_view_display.node.startups.teaser.yml33
-rw-r--r--modules/mansimran/startups/config/install/field.field.node.startups.body.yml24
-rw-r--r--modules/mansimran/startups/config/install/field.field.node.startups.field_fac.yml25
-rw-r--r--modules/mansimran/startups/config/install/field.field.node.startups.field_startup_image.yml40
-rw-r--r--modules/mansimran/startups/config/install/field.field.node.startups.field_twitter_link.yml25
-rw-r--r--modules/mansimran/startups/config/install/field.field.node.startups.field_website_link.yml25
-rw-r--r--modules/mansimran/startups/config/install/field.storage.node.field_fac.yml22
-rw-r--r--modules/mansimran/startups/config/install/field.storage.node.field_startup_image.yml33
-rw-r--r--modules/mansimran/startups/config/install/field.storage.node.field_twitter_link.yml22
-rw-r--r--modules/mansimran/startups/config/install/field.storage.node.field_website_link.yml22
-rw-r--r--modules/mansimran/startups/config/install/migrate_plus.migration.startups_1.yml64
-rw-r--r--modules/mansimran/startups/config/install/node.type.startups.yml20
-rw-r--r--modules/mansimran/startups/src/Controller/startupsController.php25
-rw-r--r--modules/mansimran/startups/startups.info.yml13
-rw-r--r--modules/mansimran/startups/startups.install27
-rw-r--r--modules/mansimran/startups/startups.module35
-rw-r--r--modules/mansimran/startups/startups.routing.yml8
-rw-r--r--modules/mansimran/startups/templates/startups.html.twig1
-rw-r--r--modules/mansimran/startups/tests/src/Functional/LoadTest.php46
-rwxr-xr-xmodules/mansimran/student_clubs/composer.json14
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/core.entity_form_display.node.club_and_chapter.default.yml115
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/core.entity_view_display.node.club_and_chapter.default.yml65
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/core.entity_view_display.node.club_and_chapter.teaser.yml39
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.body.yml24
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_facebook_link.yml25
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_logo_of_organisation.yml40
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_organisation_category.yml31
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/field.storage.node.field_facebook_link.yml22
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/field.storage.node.field_logo_of_organisation.yml33
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/field.storage.node.field_organisation_category.yml23
-rw-r--r--modules/mansimran/student_clubs/config/install/migrate_plus.migration.clubs_1.yml61
-rwxr-xr-xmodules/mansimran/student_clubs/config/install/node.type.club_and_chapter.yml20
-rwxr-xr-xmodules/mansimran/student_clubs/student_clubs.info.yml16
-rwxr-xr-xmodules/mansimran/student_clubs/student_clubs.module35
-rwxr-xr-xmodules/mansimran/student_clubs/templates/student-clubs.html.twig1
-rwxr-xr-xmodules/mansimran/student_clubs/tests/src/Functional/LoadTest.php46
-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/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
206 files changed, 6775 insertions, 0 deletions
diff --git a/modules/mansimran/academic_research/academic_research.info.yml b/modules/mansimran/academic_research/academic_research.info.yml
new file mode 100644
index 0000000..da21bbc
--- /dev/null
+++ b/modules/mansimran/academic_research/academic_research.info.yml
@@ -0,0 +1,14 @@
+name: 'academic research'
+type: module
+description: 'academic research content type'
+core: 8.x
+package: 'Custom'
+dependencies:
+ - drupal:node
+ - drupal:text
+ - drupal:user
+ - drupal:menu_ui
+ - drupal:taxonomy
+ - drupal:path
+ - drupal:entity_reference_revisions
+ - drupal:paragraphs \ No newline at end of file
diff --git a/modules/mansimran/academic_research/academic_research.install b/modules/mansimran/academic_research/academic_research.install
new file mode 100644
index 0000000..af9eeb5
--- /dev/null
+++ b/modules/mansimran/academic_research/academic_research.install
@@ -0,0 +1,27 @@
+
+<?php
+/**
+* Implements hook_uninstall().
+*/
+function academic_research_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', 'academic_research_');
+ $nids = $query->execute();
+
+
+
+ // Delete entities.
+ if (!empty($nids)) {
+ $entities = $nodeStorage->loadMultiple($nids);
+ $nodeStorage->delete($entities);
+ }
+}
+
diff --git a/modules/mansimran/academic_research/academic_research.module b/modules/mansimran/academic_research/academic_research.module
new file mode 100644
index 0000000..9ab122c
--- /dev/null
+++ b/modules/mansimran/academic_research/academic_research.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains academic_research.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function academic_research_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the academic_research module.
+ case 'help.page.academic_research':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('academic research content type') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function academic_research_theme() {
+ return [
+ 'academic_research' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/academic_research/composer.json b/modules/mansimran/academic_research/composer.json
new file mode 100644
index 0000000..bc72237
--- /dev/null
+++ b/modules/mansimran/academic_research/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/academic_research",
+ "type": "drupal-module",
+ "description": "academic research content type",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/academic_research",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/academic_research",
+ "source": "http://cgit.drupalcode.org/academic_research"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/academic_research/config/install/core.entity_form_display.node.academic_research_.default.yml b/modules/mansimran/academic_research/config/install/core.entity_form_display.node.academic_research_.default.yml
new file mode 100644
index 0000000..7279a61
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/core.entity_form_display.node.academic_research_.default.yml
@@ -0,0 +1,108 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.academic_research_.body
+ - field.field.node.academic_research_.field_lab_facilities
+ - field.field.node.academic_research_.field_school
+ - node.type.academic_research_
+ module:
+ - paragraphs
+ - path
+ - text
+ enforced:
+ module:
+ - academic_research
+id: node.academic_research_.default
+targetEntityType: node
+bundle: academic_research_
+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_lab_facilities:
+ type: entity_reference_paragraphs
+ weight: 123
+ settings:
+ title: Paragraph
+ title_plural: Paragraphs
+ edit_mode: open
+ add_mode: dropdown
+ form_display_mode: default
+ default_paragraph_type: ''
+ third_party_settings: { }
+ region: content
+ field_school:
+ weight: 122
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ type: entity_reference_autocomplete
+ 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/academic_research/config/install/core.entity_view_display.node.academic_research_.default.yml b/modules/mansimran/academic_research/config/install/core.entity_view_display.node.academic_research_.default.yml
new file mode 100644
index 0000000..f87f926
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/core.entity_view_display.node.academic_research_.default.yml
@@ -0,0 +1,51 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.academic_research_.body
+ - field.field.node.academic_research_.field_lab_facilities
+ - field.field.node.academic_research_.field_school
+ - node.type.academic_research_
+ module:
+ - entity_reference_revisions
+ - text
+ - user
+ enforced:
+ module:
+ - academic_research
+id: node.academic_research_.default
+targetEntityType: node
+bundle: academic_research_
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 101
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_lab_facilities:
+ type: entity_reference_revisions_entity_view
+ weight: 103
+ label: hidden
+ settings:
+ view_mode: default
+ link: ''
+ third_party_settings: { }
+ region: content
+ field_school:
+ weight: 102
+ label: above
+ settings:
+ link: true
+ third_party_settings: { }
+ type: entity_reference_label
+ region: content
+ links:
+ weight: 100
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ langcode: true
diff --git a/modules/mansimran/academic_research/config/install/core.entity_view_display.node.academic_research_.teaser.yml b/modules/mansimran/academic_research/config/install/core.entity_view_display.node.academic_research_.teaser.yml
new file mode 100644
index 0000000..b99ccb4
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/core.entity_view_display.node.academic_research_.teaser.yml
@@ -0,0 +1,33 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.academic_research_.body
+ - node.type.academic_research_
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - academic_research
+id: node.academic_research_.teaser
+targetEntityType: node
+bundle: academic_research_
+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:
+ langcode: true
diff --git a/modules/mansimran/academic_research/config/install/field.field.node.academic_research_.body.yml b/modules/mansimran/academic_research/config/install/field.field.node.academic_research_.body.yml
new file mode 100644
index 0000000..c750848
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/field.field.node.academic_research_.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.academic_research_
+ module:
+ - text
+ enforced:
+ module:
+ - academic_research
+id: node.academic_research_.body
+field_name: body
+entity_type: node
+bundle: academic_research_
+label: Body
+description: 'Some Description '
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/academic_research/config/install/field.field.node.academic_research_.field_lab_facilities.yml b/modules/mansimran/academic_research/config/install/field.field.node.academic_research_.field_lab_facilities.yml
new file mode 100644
index 0000000..684315b
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/field.field.node.academic_research_.field_lab_facilities.yml
@@ -0,0 +1,42 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_lab_facilities
+ - node.type.academic_research_
+ - paragraphs.paragraphs_type.lab_facilities
+ module:
+ - entity_reference_revisions
+ enforced:
+ module:
+ - academic_research
+id: node.academic_research_.field_lab_facilities
+field_name: field_lab_facilities
+entity_type: node
+bundle: academic_research_
+label: 'Lab Facilities'
+description: 'Lab facilities of VIT '
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ handler: 'default:paragraph'
+ handler_settings:
+ negate: 0
+ target_bundles:
+ lab_facilities: lab_facilities
+ target_bundles_drag_drop:
+ lab_facilities:
+ enabled: true
+ weight: 5
+ member_details_field:
+ weight: 6
+ enabled: false
+ office_details:
+ weight: 7
+ enabled: false
+ r_d_projects:
+ weight: 8
+ enabled: false
+field_type: entity_reference_revisions
diff --git a/modules/mansimran/academic_research/config/install/field.field.node.academic_research_.field_school.yml b/modules/mansimran/academic_research/config/install/field.field.node.academic_research_.field_school.yml
new file mode 100644
index 0000000..e0db681
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/field.field.node.academic_research_.field_school.yml
@@ -0,0 +1,31 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_school
+ - node.type.academic_research_
+ - taxonomy.vocabulary.school_s_of_vit_
+ enforced:
+ module:
+ - academic_research
+id: node.academic_research_.field_school
+field_name: field_school
+entity_type: node
+bundle: academic_research_
+label: school
+description: 'School carrying the research'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ handler: 'default:taxonomy_term'
+ handler_settings:
+ target_bundles:
+ school_s_of_vit_: school_s_of_vit_
+ sort:
+ field: name
+ direction: asc
+ auto_create: false
+ auto_create_bundle: ''
+field_type: entity_reference
diff --git a/modules/mansimran/academic_research/config/install/field.storage.node.field_lab_facilities.yml b/modules/mansimran/academic_research/config/install/field.storage.node.field_lab_facilities.yml
new file mode 100644
index 0000000..e95b22c
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/field.storage.node.field_lab_facilities.yml
@@ -0,0 +1,24 @@
+uuid: bd9a44a5-9301-4af6-9ac4-6e636ae16e0c
+langcode: en
+status: true
+dependencies:
+ module:
+ - entity_reference_revisions
+ - node
+ - paragraphs
+ enforced:
+ module:
+ - academic_research
+id: node.field_lab_facilities
+field_name: field_lab_facilities
+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/mansimran/academic_research/config/install/field.storage.node.field_school.yml b/modules/mansimran/academic_research/config/install/field.storage.node.field_school.yml
new file mode 100644
index 0000000..73cccc0
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/field.storage.node.field_school.yml
@@ -0,0 +1,23 @@
+uuid: 711659e0-ad09-4fac-9943-1efee9f2db4f
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - taxonomy
+ enforced:
+ module:
+ - academic_research
+id: node.field_school
+field_name: field_school
+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/academic_research/config/install/migrate_plus.migration.acad_node_migration.yml b/modules/mansimran/academic_research/config/install/migrate_plus.migration.acad_node_migration.yml
new file mode 100644
index 0000000..378d87d
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/migrate_plus.migration.acad_node_migration.yml
@@ -0,0 +1,61 @@
+langcode: en
+status: true
+id: acad_node_migration
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'acad content migration'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/acad_node.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+process:
+ type:
+ plugin: default_value
+ default_value: academic_research_
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_school:
+ plugin: entity_lookup
+ entity_type: taxonomy_term
+ bundle: school_s_of_vit_
+ source: school
+ field_lab_facilities/target_id:
+ -
+ plugin: migration_lookup
+ migration: acad_paragraph_migration
+ allow_multiple: true
+ source: id
+ no_stub: true
+ -
+ plugin: extract
+ index:
+ - 0
+ field_lab_facilities/target_revision_id:
+ -
+ plugin: migration_lookup
+ migration: acad_paragraph_migration
+ allow_multiple: true
+ source: id
+ no_stub: true
+ -
+ plugin: extract
+ index:
+ - 1
+destination:
+ plugin: 'entity:node'
+ bundle: academic_research_
+migration_dependencies:
+ required:
+ - acad_paragraph_migration
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/academic_research/config/install/migrate_plus.migration.acad_paragraph_migration.yml b/modules/mansimran/academic_research/config/install/migrate_plus.migration.acad_paragraph_migration.yml
new file mode 100644
index 0000000..fffaa67
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/migrate_plus.migration.acad_paragraph_migration.yml
@@ -0,0 +1,48 @@
+langcode: en
+status: true
+id: acad_paragraph_migration
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'acad content migration'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/acad_para.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/migrationdata/programs
+ file_dest: 'public://programs/'
+process:
+ type:
+ plugin: default_value
+ default_value: lab_facilities
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: photos
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - photos
+ field_classrooms: classrooms
+ field_laboratories: laboratories
+ field_learning_ambience: ambience
+ field_photos:
+ plugin: file_import
+ source: '@source_path'
+ destination: constants/file_dest
+destination:
+ plugin: entity_reference_revisions:paragraph
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/academic_research/config/install/node.type.academic_research_.yml b/modules/mansimran/academic_research/config/install/node.type.academic_research_.yml
new file mode 100644
index 0000000..32efada
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/node.type.academic_research_.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - academic_research
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: 'Academic Research'
+type: academic_research_
+description: 'this page will talk about the research activities in vit'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/academic_research/config/install/paragraphs.paragraphs_type.lab_facilities.yml b/modules/mansimran/academic_research/config/install/paragraphs.paragraphs_type.lab_facilities.yml
new file mode 100644
index 0000000..ec2e6b8
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/paragraphs.paragraphs_type.lab_facilities.yml
@@ -0,0 +1,12 @@
+uuid: 436a9a77-4fed-4085-b474-3da0a8a78e1f
+langcode: en
+status: true
+dependencies:
+ enforced:
+ module:
+ - academic_research
+id: lab_facilities
+label: 'Lab Facilities'
+icon_uuid: null
+description: ''
+behavior_plugins: { }
diff --git a/modules/mansimran/academic_research/config/install/taxonomy.vocabulary.school_s_of_vit_.yml b/modules/mansimran/academic_research/config/install/taxonomy.vocabulary.school_s_of_vit_.yml
new file mode 100644
index 0000000..60fc7fd
--- /dev/null
+++ b/modules/mansimran/academic_research/config/install/taxonomy.vocabulary.school_s_of_vit_.yml
@@ -0,0 +1,12 @@
+uuid: 30a88923-bcef-4a81-8cb9-a80941356747
+langcode: en
+status: true
+dependencies:
+ enforced:
+ module:
+ - academic_research
+name: 'SCHOOL''s of vit'
+vid: school_s_of_vit_
+description: 'Various academic schools in vit'
+hierarchy: 0
+weight: 0
diff --git a/modules/mansimran/academic_research/templates/academic-research.html.twig b/modules/mansimran/academic_research/templates/academic-research.html.twig
new file mode 100644
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/academic_research/templates/academic-research.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/academic_research/tests/src/Functional/LoadTest.php b/modules/mansimran/academic_research/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..871ad96
--- /dev/null
+++ b/modules/mansimran/academic_research/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\academic_research\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group academic_research
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['academic_research'];
+
+ /**
+ * 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);
+ }
+
+}
diff --git a/modules/mansimran/administrative_offices/administrative_offices.info.yml b/modules/mansimran/administrative_offices/administrative_offices.info.yml
new file mode 100644
index 0000000..9a8f105
--- /dev/null
+++ b/modules/mansimran/administrative_offices/administrative_offices.info.yml
@@ -0,0 +1,5 @@
+name: 'administrative offices'
+type: module
+description: 'Administrative offices content type'
+core: 8.x
+package: 'Custom'
diff --git a/modules/mansimran/administrative_offices/administrative_offices.install b/modules/mansimran/administrative_offices/administrative_offices.install
new file mode 100644
index 0000000..7985f05
--- /dev/null
+++ b/modules/mansimran/administrative_offices/administrative_offices.install
@@ -0,0 +1,27 @@
+
+<?php
+/**
+* Implements hook_uninstall().
+*/
+function administrative_offices_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', 'administrative_offices');
+ $nids = $query->execute();
+
+
+
+ // Delete entities.
+ if (!empty($nids)) {
+ $entities = $nodeStorage->loadMultiple($nids);
+ $nodeStorage->delete($entities);
+ }
+}
+
diff --git a/modules/mansimran/administrative_offices/administrative_offices.module b/modules/mansimran/administrative_offices/administrative_offices.module
new file mode 100644
index 0000000..125d9da
--- /dev/null
+++ b/modules/mansimran/administrative_offices/administrative_offices.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains administrative_offices.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function administrative_offices_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the administrative_offices module.
+ case 'help.page.administrative_offices':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('Administrative offices content type') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function administrative_offices_theme() {
+ return [
+ 'administrative_offices' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/administrative_offices/composer.json b/modules/mansimran/administrative_offices/composer.json
new file mode 100644
index 0000000..cb21bd1
--- /dev/null
+++ b/modules/mansimran/administrative_offices/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/administrative_offices",
+ "type": "drupal-module",
+ "description": "Administrative offices content type",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/administrative_offices",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/administrative_offices",
+ "source": "http://cgit.drupalcode.org/administrative_offices"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/administrative_offices/config/install/core.entity_form_display.node.administrative_offices.default.yml b/modules/mansimran/administrative_offices/config/install/core.entity_form_display.node.administrative_offices.default.yml
new file mode 100644
index 0000000..9349875
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/core.entity_form_display.node.administrative_offices.default.yml
@@ -0,0 +1,95 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.administrative_offices.body
+ - field.field.node.administrative_offices.field_office_
+ - node.type.administrative_offices
+ module:
+ - paragraphs
+ - path
+ - text
+id: node.administrative_offices.default
+targetEntityType: node
+bundle: administrative_offices
+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_office_:
+ 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/mansimran/administrative_offices/config/install/core.entity_view_display.node.administrative_offices.default.yml b/modules/mansimran/administrative_offices/config/install/core.entity_view_display.node.administrative_offices.default.yml
new file mode 100644
index 0000000..e042f07
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/core.entity_view_display.node.administrative_offices.default.yml
@@ -0,0 +1,42 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.administrative_offices.body
+ - field.field.node.administrative_offices.field_office_
+ - node.type.administrative_offices
+ module:
+ - entity_reference_revisions
+ - text
+ - user
+ enforced:
+ module:
+ - administrative_offices
+id: node.administrative_offices.default
+targetEntityType: node
+bundle: administrative_offices
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 101
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_office_:
+ type: entity_reference_revisions_entity_view
+ weight: 104
+ label: above
+ settings:
+ view_mode: default
+ link: ''
+ third_party_settings: { }
+ region: content
+ links:
+ weight: 100
+ settings: { }
+ third_party_settings: { }
+ region: content
+hidden:
+ langcode: true
diff --git a/modules/mansimran/administrative_offices/config/install/core.entity_view_display.node.administrative_offices.teaser.yml b/modules/mansimran/administrative_offices/config/install/core.entity_view_display.node.administrative_offices.teaser.yml
new file mode 100644
index 0000000..5057835
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/core.entity_view_display.node.administrative_offices.teaser.yml
@@ -0,0 +1,35 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.administrative_offices.body
+ - field.field.node.administrative_offices.field_office_
+ - node.type.administrative_offices
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - administrative_offices
+id: node.administrative_offices.teaser
+targetEntityType: node
+bundle: administrative_offices
+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_office_: true
+ langcode: true
diff --git a/modules/mansimran/administrative_offices/config/install/field.field.node.administrative_offices.body.yml b/modules/mansimran/administrative_offices/config/install/field.field.node.administrative_offices.body.yml
new file mode 100644
index 0000000..f2a9a26
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/field.field.node.administrative_offices.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.administrative_offices
+ module:
+ - text
+ enforced:
+ module:
+ - administrative_offices
+id: node.administrative_offices.body
+field_name: body
+entity_type: node
+bundle: administrative_offices
+label: Body
+description: 'Description of the office'
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/administrative_offices/config/install/field.field.node.administrative_offices.field_office_.yml b/modules/mansimran/administrative_offices/config/install/field.field.node.administrative_offices.field_office_.yml
new file mode 100644
index 0000000..0c10400
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/field.field.node.administrative_offices.field_office_.yml
@@ -0,0 +1,39 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_office_
+ - node.type.administrative_offices
+ - paragraphs.paragraphs_type.office_details
+ module:
+ - entity_reference_revisions
+ enforced:
+ module:
+ - administrative_offices
+id: node.administrative_offices.field_office_
+field_name: field_office_
+entity_type: node
+bundle: administrative_offices
+label: 'Office details'
+description: 'Office details'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ handler: 'default:paragraph'
+ handler_settings:
+ negate: 0
+ target_bundles:
+ office_details: office_details
+ target_bundles_drag_drop:
+ member_details_field:
+ weight: 4
+ enabled: false
+ office_details:
+ enabled: true
+ weight: 5
+ r_d_projects:
+ weight: 6
+ enabled: false
+field_type: entity_reference_revisions
diff --git a/modules/mansimran/administrative_offices/config/install/field.storage.node.field_office_.yml b/modules/mansimran/administrative_offices/config/install/field.storage.node.field_office_.yml
new file mode 100644
index 0000000..9622dfa
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/field.storage.node.field_office_.yml
@@ -0,0 +1,24 @@
+uuid: a459bc3a-894d-4393-955a-85ecd45061f4
+langcode: en
+status: true
+dependencies:
+ module:
+ - entity_reference_revisions
+ - node
+ - paragraphs
+ enforced:
+ module:
+ - administrative_offices
+id: node.field_office_
+field_name: field_office_
+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/mansimran/administrative_offices/config/install/migrate_plus.migration.admin_para_migration.yml b/modules/mansimran/administrative_offices/config/install/migrate_plus.migration.admin_para_migration.yml
new file mode 100644
index 0000000..143e1b5
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/migrate_plus.migration.admin_para_migration.yml
@@ -0,0 +1,30 @@
+uuid: b750a99d-9cc8-4c43-9fce-5e75fd128bf8
+langcode: en
+status: true
+id: admin_para_migration
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'admin content migration'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/adminofficepara.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+process:
+ type:
+ plugin: default_value
+ default_value: office_details
+ field_contact_details: Contact
+ field_location: location
+destination:
+ plugin: entity_reference_revisions:paragraph
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/administrative_offices/config/install/migrate_plus.migration.adminoffice_1.yml b/modules/mansimran/administrative_offices/config/install/migrate_plus.migration.adminoffice_1.yml
new file mode 100644
index 0000000..8ace16e
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/migrate_plus.migration.adminoffice_1.yml
@@ -0,0 +1,57 @@
+uuid: 99d55013-7c47-4b21-9368-572622fd85df
+langcode: en
+status: true
+id: adminoffice_1
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'admin_office_csv_import_1'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/adminofficenode.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+process:
+ type:
+ plugin: default_value
+ default_value: administrative_offices
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_office_/target_id:
+ -
+ plugin: migration_lookup
+ migration: admin_para_migration
+ allow_multiple: true
+ source: id
+ no_stub: true
+ -
+ plugin: extract
+ index:
+ - 0
+ field_office_/target_revision_id:
+ -
+ plugin: migration_lookup
+ migration: admin_para_migration
+ allow_multiple: true
+ source: id
+ no_stub: true
+ -
+ plugin: extract
+ index:
+ - 1
+destination:
+ plugin: 'entity:node'
+ bundle: administrative_offices
+migration_dependencies:
+ required:
+ - admin_para_migration
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/administrative_offices/config/install/node.type.administrative_offices.yml b/modules/mansimran/administrative_offices/config/install/node.type.administrative_offices.yml
new file mode 100644
index 0000000..95d8940
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/node.type.administrative_offices.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - administrative_offices
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: 'Administrative offices'
+type: administrative_offices
+description: 'List of administrative offices in VIT'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/administrative_offices/config/install/paragraphs.paragraphs_type.office_details.yml b/modules/mansimran/administrative_offices/config/install/paragraphs.paragraphs_type.office_details.yml
new file mode 100644
index 0000000..a173ed4
--- /dev/null
+++ b/modules/mansimran/administrative_offices/config/install/paragraphs.paragraphs_type.office_details.yml
@@ -0,0 +1,13 @@
+uuid: af03fad4-b366-424d-bd9e-71b303a68ff3
+langcode: en
+status: true
+dependencies: { }
+id: office_details
+label: 'Office details'
+icon_uuid: null
+description: ''
+behavior_plugins: { }
+dependecies:
+ enforced:
+ module:
+ - administrative_offices
diff --git a/modules/mansimran/administrative_offices/templates/administrative-offices.html.twig b/modules/mansimran/administrative_offices/templates/administrative-offices.html.twig
new file mode 100644
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/administrative_offices/templates/administrative-offices.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/administrative_offices/tests/src/Functional/LoadTest.php b/modules/mansimran/administrative_offices/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..2610ff5
--- /dev/null
+++ b/modules/mansimran/administrative_offices/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\administrative_offices\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group administrative_offices
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['administrative_offices'];
+
+ /**
+ * 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);
+ }
+
+}
diff --git a/modules/mansimran/chapters/chapters.info.yml b/modules/mansimran/chapters/chapters.info.yml
new file mode 100644
index 0000000..8502c2e
--- /dev/null
+++ b/modules/mansimran/chapters/chapters.info.yml
@@ -0,0 +1,16 @@
+name: 'chapters'
+type: module
+description: 'My Awesome Module'
+core: 8.x
+package: 'Custom'
+dependencies:
+ - drupal:node
+ - drupal:menu_ui
+ - drupal:file
+ - drupal:image
+ - drupal:link
+ - drupal:taxonomy
+ - drupal:path
+ - drupal:text
+ - drupal:user
+
diff --git a/modules/mansimran/chapters/chapters.module b/modules/mansimran/chapters/chapters.module
new file mode 100644
index 0000000..9d6c121
--- /dev/null
+++ b/modules/mansimran/chapters/chapters.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains chapters.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function chapters_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the chapters module.
+ case 'help.page.chapters':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('My Awesome Module') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function chapters_theme() {
+ return [
+ 'chapters' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/chapters/chapters.routing.yml b/modules/mansimran/chapters/chapters.routing.yml
new file mode 100644
index 0000000..4f87132
--- /dev/null
+++ b/modules/mansimran/chapters/chapters.routing.yml
@@ -0,0 +1,8 @@
+
+chapters.chapters_controller_hello:
+ path: '/chapters/hello/{name}'
+ defaults:
+ _controller: '\Drupal\chapters\Controller\chaptersController::hello'
+ _title: 'chaptersController'
+ requirements:
+ _permission: 'access content'
diff --git a/modules/mansimran/chapters/composer.json b/modules/mansimran/chapters/composer.json
new file mode 100644
index 0000000..02f466f
--- /dev/null
+++ b/modules/mansimran/chapters/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/chapters",
+ "type": "drupal-module",
+ "description": "My Awesome Module",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/chapters",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/chapters",
+ "source": "http://cgit.drupalcode.org/chapters"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/chapters/config/install/core.entity_form_display.node.student_chapter.default.yml b/modules/mansimran/chapters/config/install/core.entity_form_display.node.student_chapter.default.yml
new file mode 100644
index 0000000..a58312d
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/core.entity_form_display.node.student_chapter.default.yml
@@ -0,0 +1,115 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.student_chapter.body
+ - field.field.node.student_chapter.field_chapter_category
+ - field.field.node.student_chapter.field_chapter_facebook_link
+ - field.field.node.student_chapter.field_chapter_logo
+ - image.style.thumbnail
+ - node.type.student_chapter
+ module:
+ - image
+ - link
+ - path
+ - text
+ enforced:
+ module:
+ - chapters
+id: node.student_chapter.default
+targetEntityType: node
+bundle: student_chapter
+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_chapter_category:
+ weight: 125
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ type: entity_reference_autocomplete
+ region: content
+ field_chapter_facebook_link:
+ weight: 122
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_chapter_logo:
+ weight: 123
+ 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/chapters/config/install/core.entity_view_display.node.student_chapter.default.yml b/modules/mansimran/chapters/config/install/core.entity_view_display.node.student_chapter.default.yml
new file mode 100644
index 0000000..40b8ba2
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/core.entity_view_display.node.student_chapter.default.yml
@@ -0,0 +1,65 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.student_chapter.body
+ - field.field.node.student_chapter.field_chapter_category
+ - field.field.node.student_chapter.field_chapter_facebook_link
+ - field.field.node.student_chapter.field_chapter_logo
+ - node.type.student_chapter
+ module:
+ - image
+ - link
+ - text
+ - user
+ enforced:
+ module:
+ - chapters
+id: node.student_chapter.default
+targetEntityType: node
+bundle: student_chapter
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 101
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_chapter_category:
+ weight: 105
+ label: above
+ settings:
+ link: true
+ third_party_settings: { }
+ type: entity_reference_label
+ region: content
+ field_chapter_facebook_link:
+ weight: 103
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_chapter_logo:
+ weight: 102
+ label: above
+ 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/chapters/config/install/core.entity_view_display.node.student_chapter.teaser.yml b/modules/mansimran/chapters/config/install/core.entity_view_display.node.student_chapter.teaser.yml
new file mode 100644
index 0000000..fc1b662
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/core.entity_view_display.node.student_chapter.teaser.yml
@@ -0,0 +1,39 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.student_chapter.body
+ - field.field.node.student_chapter.field_chapter_category
+ - field.field.node.student_chapter.field_chapter_facebook_link
+ - field.field.node.student_chapter.field_chapter_logo
+ - node.type.student_chapter
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - chapters
+id: node.student_chapter.teaser
+targetEntityType: node
+bundle: student_chapter
+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_chapter_category: true
+ field_chapter_facebook_link: true
+ field_chapter_logo: true
+ langcode: true
diff --git a/modules/mansimran/chapters/config/install/field.field.node.student_chapter.body.yml b/modules/mansimran/chapters/config/install/field.field.node.student_chapter.body.yml
new file mode 100644
index 0000000..06c5cb1
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/field.field.node.student_chapter.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.student_chapter
+ module:
+ - text
+ enforced:
+ module:
+ - chapters
+id: node.student_chapter.body
+field_name: body
+entity_type: node
+bundle: student_chapter
+label: Body
+description: 'Description of various chapters in VIT'
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_category.yml b/modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_category.yml
new file mode 100644
index 0000000..724f975
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_category.yml
@@ -0,0 +1,31 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_chapter_category
+ - node.type.student_chapter
+ - taxonomy.vocabulary.chapter_category
+ enforced:
+ module:
+ - chapters
+id: node.student_chapter.field_chapter_category
+field_name: field_chapter_category
+entity_type: node
+bundle: student_chapter
+label: 'chapter category'
+description: 'chapter category'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ handler: 'default:taxonomy_term'
+ handler_settings:
+ target_bundles:
+ chapter_category: chapter_category
+ sort:
+ field: name
+ direction: asc
+ auto_create: false
+ auto_create_bundle: ''
+field_type: entity_reference
diff --git a/modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_facebook_link.yml b/modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_facebook_link.yml
new file mode 100644
index 0000000..7b40ea8
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_facebook_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_chapter_facebook_link
+ - node.type.student_chapter
+ module:
+ - link
+ enforced:
+ module:
+ - chapters
+id: node.student_chapter.field_chapter_facebook_link
+field_name: field_chapter_facebook_link
+entity_type: node
+bundle: student_chapter
+label: 'Chapter Facebook Link'
+description: 'Chapter Facebook Link'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_logo.yml b/modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_logo.yml
new file mode 100644
index 0000000..000acc8
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/field.field.node.student_chapter.field_chapter_logo.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_chapter_logo
+ - node.type.student_chapter
+ module:
+ - image
+ enforced:
+ module:
+ - chapters
+id: node.student_chapter.field_chapter_logo
+field_name: field_chapter_logo
+entity_type: node
+bundle: student_chapter
+label: 'chapter logo'
+description: 'chapter logo'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: chapters
+ 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/chapters/config/install/field.storage.node.field_chapter_category.yml b/modules/mansimran/chapters/config/install/field.storage.node.field_chapter_category.yml
new file mode 100644
index 0000000..47660d5
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/field.storage.node.field_chapter_category.yml
@@ -0,0 +1,23 @@
+uuid: d8af11ea-283d-4e9c-9e76-abbfeafbb339
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - taxonomy
+ enforced:
+ module:
+ - chapters
+id: node.field_chapter_category
+field_name: field_chapter_category
+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/chapters/config/install/field.storage.node.field_chapter_facebook_link.yml b/modules/mansimran/chapters/config/install/field.storage.node.field_chapter_facebook_link.yml
new file mode 100644
index 0000000..84d5ed6
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/field.storage.node.field_chapter_facebook_link.yml
@@ -0,0 +1,22 @@
+uuid: f93b9a5d-516b-441c-a733-cf091824d0e6
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - chapters
+id: node.field_chapter_facebook_link
+field_name: field_chapter_facebook_link
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/chapters/config/install/field.storage.node.field_chapter_logo.yml b/modules/mansimran/chapters/config/install/field.storage.node.field_chapter_logo.yml
new file mode 100644
index 0000000..e949317
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/field.storage.node.field_chapter_logo.yml
@@ -0,0 +1,33 @@
+uuid: 84d48b0a-5d4a-439e-a308-8c3b2eb9cd4a
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - image
+ - node
+ enforced:
+ module:
+ - chapters
+id: node.field_chapter_logo
+field_name: field_chapter_logo
+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/chapters/config/install/migrate_plus.migration.chapters_1.yml b/modules/mansimran/chapters/config/install/migrate_plus.migration.chapters_1.yml
new file mode 100644
index 0000000..6b70fa9
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/migrate_plus.migration.chapters_1.yml
@@ -0,0 +1,58 @@
+uuid: 9cfc3d24-5f29-4a18-9ab1-c0b86b9e8728
+langcode: en
+id: chapters_1
+status: true
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'chapters_csv_import1'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/chapters.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/migrationdata/chapters
+ file_dest: 'public://chapters/'
+process:
+ type:
+ plugin: default_value
+ default_value: student_chapter
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: chapter_logo
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - chapter_logo
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_chapter_category:
+ plugin: entity_lookup
+ entity_type: taxonomy_term
+ bundle: chapter_category
+ source: chapter_category
+ field_chapter_logo:
+ plugin: file_import
+ source: '@source_path'
+ destination: constants/file_dest
+ field_chapter_facebook_link/uri: chapter_facebook_link
+destination:
+ plugin: 'entity:node'
+ bundle: student_chapter
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/chapters/config/install/node.type.student_chapter.yml b/modules/mansimran/chapters/config/install/node.type.student_chapter.yml
new file mode 100644
index 0000000..51f8c08
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/node.type.student_chapter.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - chapters
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: 'Student Chapters'
+type: student_chapter
+description: 'List of student chapters in VIT'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/chapters/config/install/taxonomy.vocabulary.chapter_category.yml b/modules/mansimran/chapters/config/install/taxonomy.vocabulary.chapter_category.yml
new file mode 100644
index 0000000..a357ac9
--- /dev/null
+++ b/modules/mansimran/chapters/config/install/taxonomy.vocabulary.chapter_category.yml
@@ -0,0 +1,12 @@
+uuid: 8dfa8ec9-056f-423c-8c93-abfc232735c3
+langcode: en
+status: true
+dependencies:
+ enforced:
+ module:
+ - chapters
+name: 'Chapter category'
+vid: chapter_category
+description: 'Chapter category'
+hierarchy: 0
+weight: 0
diff --git a/modules/mansimran/chapters/src/Controller/chaptersController.php b/modules/mansimran/chapters/src/Controller/chaptersController.php
new file mode 100644
index 0000000..ed09230
--- /dev/null
+++ b/modules/mansimran/chapters/src/Controller/chaptersController.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\chapters\Controller;
+
+use Drupal\Core\Controller\ControllerBase;
+
+/**
+ * Class chaptersController.
+ */
+class chaptersController extends ControllerBase {
+
+ /**
+ * Hello.
+ *
+ * @return string
+ * Return Hello string.
+ */
+ public function hello($name) {
+ return [
+ '#type' => 'markup',
+ '#markup' => $this->t('Implement method: hello with parameter(s): $name'),
+ ];
+ }
+
+}
diff --git a/modules/mansimran/chapters/templates/chapters.html.twig b/modules/mansimran/chapters/templates/chapters.html.twig
new file mode 100644
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/chapters/templates/chapters.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/chapters/tests/src/Functional/LoadTest.php b/modules/mansimran/chapters/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..d0d8948
--- /dev/null
+++ b/modules/mansimran/chapters/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\chapters\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group chapters
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['chapters'];
+
+ /**
+ * 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);
+ }
+
+}
diff --git a/modules/mansimran/fest/composer.json b/modules/mansimran/fest/composer.json
new file mode 100644
index 0000000..4301ff7
--- /dev/null
+++ b/modules/mansimran/fest/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/fest",
+ "type": "drupal-module",
+ "description": "Importing fest content type",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/fest",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/fest",
+ "source": "http://cgit.drupalcode.org/fest"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/fest/config/install/core.entity_form_display.node.fest.default.yml b/modules/mansimran/fest/config/install/core.entity_form_display.node.fest.default.yml
new file mode 100644
index 0000000..10d5212
--- /dev/null
+++ b/modules/mansimran/fest/config/install/core.entity_form_display.node.fest.default.yml
@@ -0,0 +1,114 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.fest.body
+ - field.field.node.fest.field_fest_pics
+ - field.field.node.fest.field_fest_website
+ - field.field.node.fest.field_fest_youtube_link
+ - image.style.thumbnail
+ - node.type.fest
+ module:
+ - image
+ - link
+ - path
+ - text
+ enforced:
+ module:
+ - fest
+id: node.fest.default
+targetEntityType: node
+bundle: fest
+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_fest_pics:
+ weight: 122
+ settings:
+ progress_indicator: throbber
+ preview_image_style: thumbnail
+ third_party_settings: { }
+ type: image_image
+ region: content
+ field_fest_website:
+ weight: 124
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_fest_youtube_link:
+ weight: 123
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ 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/fest/config/install/core.entity_view_display.node.fest.default.yml b/modules/mansimran/fest/config/install/core.entity_view_display.node.fest.default.yml
new file mode 100644
index 0000000..0aff7cd
--- /dev/null
+++ b/modules/mansimran/fest/config/install/core.entity_view_display.node.fest.default.yml
@@ -0,0 +1,69 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.fest.body
+ - field.field.node.fest.field_fest_pics
+ - field.field.node.fest.field_fest_website
+ - field.field.node.fest.field_fest_youtube_link
+ - node.type.fest
+ module:
+ - image
+ - link
+ - text
+ - user
+ enforced:
+ module:
+ - fest
+id: node.fest.default
+targetEntityType: node
+bundle: fest
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 101
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_fest_pics:
+ weight: 102
+ label: above
+ settings:
+ image_style: ''
+ image_link: ''
+ third_party_settings: { }
+ type: image
+ region: content
+ field_fest_website:
+ weight: 104
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_fest_youtube_link:
+ weight: 103
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ links:
+ weight: 100
+ settings: { }
+ third_party_settings: { }
+ region: content
+hidden:
+ langcode: true
diff --git a/modules/mansimran/fest/config/install/core.entity_view_display.node.fest.teaser.yml b/modules/mansimran/fest/config/install/core.entity_view_display.node.fest.teaser.yml
new file mode 100644
index 0000000..e6f0ef4
--- /dev/null
+++ b/modules/mansimran/fest/config/install/core.entity_view_display.node.fest.teaser.yml
@@ -0,0 +1,39 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.fest.body
+ - field.field.node.fest.field_fest_pics
+ - field.field.node.fest.field_fest_website
+ - field.field.node.fest.field_fest_youtube_link
+ - node.type.fest
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - fest
+id: node.fest.teaser
+targetEntityType: node
+bundle: fest
+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_fest_pics: true
+ field_fest_website: true
+ field_fest_youtube_link: true
+ langcode: true
diff --git a/modules/mansimran/fest/config/install/field.field.node.fest.body.yml b/modules/mansimran/fest/config/install/field.field.node.fest.body.yml
new file mode 100644
index 0000000..392d20b
--- /dev/null
+++ b/modules/mansimran/fest/config/install/field.field.node.fest.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.fest
+ module:
+ - text
+ enforced:
+ module:
+ - fest
+id: node.fest.body
+field_name: body
+entity_type: node
+bundle: fest
+label: Body
+description: 'Description of the fest'
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/fest/config/install/field.field.node.fest.field_fest_pics.yml b/modules/mansimran/fest/config/install/field.field.node.fest.field_fest_pics.yml
new file mode 100644
index 0000000..a5d8788
--- /dev/null
+++ b/modules/mansimran/fest/config/install/field.field.node.fest.field_fest_pics.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_fest_pics
+ - node.type.fest
+ module:
+ - image
+ enforced:
+ module:
+ - fest
+id: node.fest.field_fest_pics
+field_name: field_fest_pics
+entity_type: node
+bundle: fest
+label: 'Fest Pics'
+description: 'The Pictures of the fest '
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: '[date:custom:Y]-[date:custom:m]'
+ 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/fest/config/install/field.field.node.fest.field_fest_website.yml b/modules/mansimran/fest/config/install/field.field.node.fest.field_fest_website.yml
new file mode 100644
index 0000000..44e7715
--- /dev/null
+++ b/modules/mansimran/fest/config/install/field.field.node.fest.field_fest_website.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_fest_website
+ - node.type.fest
+ module:
+ - link
+ enforced:
+ module:
+ - fest
+id: node.fest.field_fest_website
+field_name: field_fest_website
+entity_type: node
+bundle: fest
+label: 'fest website'
+description: 'A link to the website of the fest'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/fest/config/install/field.field.node.fest.field_fest_youtube_link.yml b/modules/mansimran/fest/config/install/field.field.node.fest.field_fest_youtube_link.yml
new file mode 100644
index 0000000..23751f1
--- /dev/null
+++ b/modules/mansimran/fest/config/install/field.field.node.fest.field_fest_youtube_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_fest_youtube_link
+ - node.type.fest
+ module:
+ - link
+ enforced:
+ module:
+ - fest
+id: node.fest.field_fest_youtube_link
+field_name: field_fest_youtube_link
+entity_type: node
+bundle: fest
+label: 'fest youtube link'
+description: 'Fest youtube link'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/fest/config/install/field.storage.node.field_fest_pics.yml b/modules/mansimran/fest/config/install/field.storage.node.field_fest_pics.yml
new file mode 100644
index 0000000..223dc80
--- /dev/null
+++ b/modules/mansimran/fest/config/install/field.storage.node.field_fest_pics.yml
@@ -0,0 +1,33 @@
+uuid: b43f2232-6511-4822-86d9-0e0017831edc
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - image
+ - node
+ enforced:
+ module:
+ - fest
+id: node.field_fest_pics
+field_name: field_fest_pics
+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/fest/config/install/field.storage.node.field_fest_website.yml b/modules/mansimran/fest/config/install/field.storage.node.field_fest_website.yml
new file mode 100644
index 0000000..592a4e0
--- /dev/null
+++ b/modules/mansimran/fest/config/install/field.storage.node.field_fest_website.yml
@@ -0,0 +1,22 @@
+uuid: 829d8806-5365-42f3-a15d-f0b888a9bc2d
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - fest
+id: node.field_fest_website
+field_name: field_fest_website
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/fest/config/install/field.storage.node.field_fest_youtube_link.yml b/modules/mansimran/fest/config/install/field.storage.node.field_fest_youtube_link.yml
new file mode 100644
index 0000000..a85a314
--- /dev/null
+++ b/modules/mansimran/fest/config/install/field.storage.node.field_fest_youtube_link.yml
@@ -0,0 +1,22 @@
+uuid: 1c1ca56f-3da3-4f65-8da7-babdaeaffa3d
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - fest
+id: node.field_fest_youtube_link
+field_name: field_fest_youtube_link
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml b/modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml
new file mode 100644
index 0000000..64317eb
--- /dev/null
+++ b/modules/mansimran/fest/config/install/migrate_plus.migration.fest_1.yml
@@ -0,0 +1,65 @@
+uuid: 7f27a807-6fa9-4d41-bd21-cc6900ab8293
+langcode: en
+id: fest_1
+status: true
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'fest_csv_import1'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/fest.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/migrationdata/fest
+ file_dest: 'public://fest1/'
+process:
+ type:
+ plugin: default_value
+ default_value: fest
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: pictures
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - pictures
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_fest_pics:
+ -
+ plugin: explode
+ delimiter: ','
+ source: pictures
+ -
+ plugin: file_import
+ # source: '@source_path'
+ destination: constants/file_dest
+ field_fest_website/uri: website_link
+ field_fest_website/title:
+ plugin: default_value
+ default_value: 'Website Link'
+ field_fest_youtube_link/uri: youtube_link
+ field_fest_youtube_link/title:
+ plugin: default_value
+ default_value: 'Youtube Link'
+destination:
+ plugin: 'entity:node'
+ bundle: fest
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/fest/config/install/node.type.fest.yml b/modules/mansimran/fest/config/install/node.type.fest.yml
new file mode 100644
index 0000000..974379f
--- /dev/null
+++ b/modules/mansimran/fest/config/install/node.type.fest.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - fest
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: Fest
+type: fest
+description: 'About the Fests held in VIT'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/fest/fest.info.yml b/modules/mansimran/fest/fest.info.yml
new file mode 100644
index 0000000..c6d4f6f
--- /dev/null
+++ b/modules/mansimran/fest/fest.info.yml
@@ -0,0 +1,14 @@
+name: 'fest'
+type: module
+description: 'Importing fest content type'
+core: 8.x
+package: 'Custom'
+dependencies:
+ - drupal:image
+ - drupal:link
+ - drupal:path
+ - drupal:text
+ - drupal:file
+ - drupal:node
+ - drupal:user
+ - drupal:menu_ui \ No newline at end of file
diff --git a/modules/mansimran/fest/fest.module b/modules/mansimran/fest/fest.module
new file mode 100644
index 0000000..8327ed9
--- /dev/null
+++ b/modules/mansimran/fest/fest.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains fest.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function fest_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the fest module.
+ case 'help.page.fest':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('Importing fest content type') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function fest_theme() {
+ return [
+ 'fest' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/fest/templates/fest.html.twig b/modules/mansimran/fest/templates/fest.html.twig
new file mode 100644
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/fest/templates/fest.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/fest/tests/src/Functional/LoadTest.php b/modules/mansimran/fest/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..de3e959
--- /dev/null
+++ b/modules/mansimran/fest/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\fest\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group fest
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['fest'];
+
+ /**
+ * 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);
+ }
+
+}
diff --git a/modules/mansimran/international_transfer_program/composer.json b/modules/mansimran/international_transfer_program/composer.json
new file mode 100644
index 0000000..f6d69e0
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/international_transfer_program",
+ "type": "drupal-module",
+ "description": "Importing itp content type",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/international_transfer_program",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/international_transfer_program",
+ "source": "http://cgit.drupalcode.org/international_transfer_program"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/international_transfer_program/config/install/core.entity_form_display.node.international_transfer_program.default.yml b/modules/mansimran/international_transfer_program/config/install/core.entity_form_display.node.international_transfer_program.default.yml
new file mode 100644
index 0000000..8b36945
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/core.entity_form_display.node.international_transfer_program.default.yml
@@ -0,0 +1,104 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.international_transfer_program.body
+ - field.field.node.international_transfer_program.field_country
+ - field.field.node.international_transfer_program.field_link_
+ - node.type.international_transfer_program
+ module:
+ - link
+ - path
+ - text
+ enforced:
+ module:
+ - international_transfer_program
+id: node.international_transfer_program.default
+targetEntityType: node
+bundle: international_transfer_program
+mode: default
+content:
+ body:
+ type: text_textarea_with_summary
+ weight: 122
+ 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: 121
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ type: entity_reference_autocomplete
+ region: content
+ field_link_:
+ weight: 123
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ 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/international_transfer_program/config/install/core.entity_view_display.node.international_transfer_program.default.yml b/modules/mansimran/international_transfer_program/config/install/core.entity_view_display.node.international_transfer_program.default.yml
new file mode 100644
index 0000000..a562947
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/core.entity_view_display.node.international_transfer_program.default.yml
@@ -0,0 +1,54 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.international_transfer_program.body
+ - field.field.node.international_transfer_program.field_country
+ - field.field.node.international_transfer_program.field_link_
+ - node.type.international_transfer_program
+ module:
+ - link
+ - text
+ - user
+ enforced:
+ module:
+ - international_transfer_program
+id: node.international_transfer_program.default
+targetEntityType: node
+bundle: international_transfer_program
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 101
+ 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_link_:
+ weight: 102
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ links:
+ weight: 100
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ langcode: true
diff --git a/modules/mansimran/international_transfer_program/config/install/core.entity_view_display.node.international_transfer_program.teaser.yml b/modules/mansimran/international_transfer_program/config/install/core.entity_view_display.node.international_transfer_program.teaser.yml
new file mode 100644
index 0000000..da309d5
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/core.entity_view_display.node.international_transfer_program.teaser.yml
@@ -0,0 +1,37 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.international_transfer_program.body
+ - field.field.node.international_transfer_program.field_country
+ - field.field.node.international_transfer_program.field_link_
+ - node.type.international_transfer_program
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - international_transfer_program
+id: node.international_transfer_program.teaser
+targetEntityType: node
+bundle: international_transfer_program
+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_link_: true
+ langcode: true
diff --git a/modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.body.yml b/modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.body.yml
new file mode 100644
index 0000000..6e1d9a4
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.international_transfer_program
+ module:
+ - text
+ enforced:
+ module:
+ - international_transfer_program
+id: node.international_transfer_program.body
+field_name: body
+entity_type: node
+bundle: international_transfer_program
+label: 'Courses offered'
+description: 'Courses offered by the universty'
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.field_country.yml b/modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.field_country.yml
new file mode 100644
index 0000000..e06d229
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.field_country.yml
@@ -0,0 +1,31 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_country
+ - node.type.international_transfer_program
+ - taxonomy.vocabulary.continent
+ enforced:
+ module:
+ - international_transfer_program
+id: node.international_transfer_program.field_country
+field_name: field_country
+entity_type: node
+bundle: international_transfer_program
+label: Country
+description: 'Country these Universities hail 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/international_transfer_program/config/install/field.field.node.international_transfer_program.field_link_.yml b/modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.field_link_.yml
new file mode 100644
index 0000000..a91b41a
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/field.field.node.international_transfer_program.field_link_.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_link_
+ - node.type.international_transfer_program
+ module:
+ - link
+ enforced:
+ module:
+ - international_transfer_program
+id: node.international_transfer_program.field_link_
+field_name: field_link_
+entity_type: node
+bundle: international_transfer_program
+label: 'Link '
+description: 'Link to University Site'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/international_transfer_program/config/install/field.storage.node.field_country.yml b/modules/mansimran/international_transfer_program/config/install/field.storage.node.field_country.yml
new file mode 100644
index 0000000..f55fb70
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/field.storage.node.field_country.yml
@@ -0,0 +1,23 @@
+uuid: c654ef80-5314-4310-94b9-b63bd020ee15
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - taxonomy
+ enforced:
+ module:
+ - international_transfer_program
+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/international_transfer_program/config/install/field.storage.node.field_link_.yml b/modules/mansimran/international_transfer_program/config/install/field.storage.node.field_link_.yml
new file mode 100644
index 0000000..dc08f55
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/field.storage.node.field_link_.yml
@@ -0,0 +1,22 @@
+uuid: e3f5e53c-5cb3-457e-a83e-e7d59177cf48
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - international_transfer_program
+id: node.field_link_
+field_name: field_link_
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/international_transfer_program/config/install/node.type.international_transfer_program.yml b/modules/mansimran/international_transfer_program/config/install/node.type.international_transfer_program.yml
new file mode 100644
index 0000000..1a7af9b
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/node.type.international_transfer_program.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - international_transfer_program
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: 'International Transfer Program'
+type: international_transfer_program
+description: 'The foreign Universities VIT is affliated with '
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/international_transfer_program/config/install/taxonomy.vocabulary.continent.yml b/modules/mansimran/international_transfer_program/config/install/taxonomy.vocabulary.continent.yml
new file mode 100644
index 0000000..bf855cf
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/config/install/taxonomy.vocabulary.continent.yml
@@ -0,0 +1,12 @@
+uuid: a5725386-67c9-44f9-9b47-efaec62ff7a1
+langcode: en
+status: true
+dependencies:
+ enforced:
+ module:
+ - international_transfer_program
+name: Country
+vid: continent
+description: 'Country where the university is from '
+hierarchy: 0
+weight: 0
diff --git a/modules/mansimran/international_transfer_program/international_transfer_program.info.yml b/modules/mansimran/international_transfer_program/international_transfer_program.info.yml
new file mode 100644
index 0000000..006ae84
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/international_transfer_program.info.yml
@@ -0,0 +1,13 @@
+name: 'international transfer program'
+type: module
+description: 'Importing itp content type'
+core: 8.x
+package: 'Custom'
+dependencies:
+ - drupal:node
+ - drupal:menu_ui
+ - drupal:taxonomy
+ - drupal:link
+ - drupal:path
+ - drupal:user
+ - drupal:text \ No newline at end of file
diff --git a/modules/mansimran/international_transfer_program/international_transfer_program.install b/modules/mansimran/international_transfer_program/international_transfer_program.install
new file mode 100644
index 0000000..5ee7ff5
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/international_transfer_program.install
@@ -0,0 +1,27 @@
+
+<?php
+/**
+* Implements hook_uninstall().
+*/
+function international_transfer_program_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', 'international_transfer_program');
+ $nids = $query->execute();
+
+
+
+ // Delete entities.
+ if (!empty($nids)) {
+ $entities = $nodeStorage->loadMultiple($nids);
+ $nodeStorage->delete($entities);
+ }
+}
+
diff --git a/modules/mansimran/international_transfer_program/international_transfer_program.module b/modules/mansimran/international_transfer_program/international_transfer_program.module
new file mode 100644
index 0000000..e9d514e
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/international_transfer_program.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains international_transfer_program.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function international_transfer_program_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the international_transfer_program module.
+ case 'help.page.international_transfer_program':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('Importing itp content type') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function international_transfer_program_theme() {
+ return [
+ 'international_transfer_program' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/international_transfer_program/international_transfer_program.routing.yml b/modules/mansimran/international_transfer_program/international_transfer_program.routing.yml
new file mode 100644
index 0000000..f313f01
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/international_transfer_program.routing.yml
@@ -0,0 +1,8 @@
+
+international_transfer_program.itp_controller_hello:
+ path: '/international_transfer_program/hello/{name}'
+ defaults:
+ _controller: '\Drupal\international_transfer_program\Controller\itpController::hello'
+ _title: 'itpController'
+ requirements:
+ _permission: 'access content'
diff --git a/modules/mansimran/international_transfer_program/src/Controller/itpController.php b/modules/mansimran/international_transfer_program/src/Controller/itpController.php
new file mode 100644
index 0000000..a76697c
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/src/Controller/itpController.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\international_transfer_program\Controller;
+
+use Drupal\Core\Controller\ControllerBase;
+
+/**
+ * Class itpController.
+ */
+class itpController extends ControllerBase {
+
+ /**
+ * Hello.
+ *
+ * @return string
+ * Return Hello string.
+ */
+ public function hello($name) {
+ return [
+ '#type' => 'markup',
+ '#markup' => $this->t('Implement method: hello with parameter(s): $name'),
+ ];
+ }
+
+}
diff --git a/modules/mansimran/international_transfer_program/templates/international-transfer-program.html.twig b/modules/mansimran/international_transfer_program/templates/international-transfer-program.html.twig
new file mode 100644
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/templates/international-transfer-program.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/international_transfer_program/tests/src/Functional/LoadTest.php b/modules/mansimran/international_transfer_program/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..b469416
--- /dev/null
+++ b/modules/mansimran/international_transfer_program/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\international_transfer_program\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group international_transfer_program
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['international_transfer_program'];
+
+ /**
+ * 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);
+ }
+
+}
diff --git a/modules/mansimran/programs/composer.json b/modules/mansimran/programs/composer.json
new file mode 100755
index 0000000..4085028
--- /dev/null
+++ b/modules/mansimran/programs/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/programs",
+ "type": "drupal-module",
+ "description": "My Awesome Module",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/programs",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/programs",
+ "source": "http://cgit.drupalcode.org/programs"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/programs/config/install/core.entity_form_display.node.programs_offered.default.yml b/modules/mansimran/programs/config/install/core.entity_form_display.node.programs_offered.default.yml
new file mode 100755
index 0000000..fee00a4
--- /dev/null
+++ b/modules/mansimran/programs/config/install/core.entity_form_display.node.programs_offered.default.yml
@@ -0,0 +1,157 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.programs_offered.body
+ - field.field.node.programs_offered.field_admission_procedure
+ - field.field.node.programs_offered.field_check_list
+ - field.field.node.programs_offered.field_counselling_procedure
+ - field.field.node.programs_offered.field_eligibility
+ - field.field.node.programs_offered.field_hostel_details
+ - field.field.node.programs_offered.field_how_to_apply
+ - field.field.node.programs_offered.field_information_brochure
+ - field.field.node.programs_offered.field_required_documents
+ - node.type.programs_offered
+ module:
+ - link
+ - path
+ - text
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.default
+targetEntityType: node
+bundle: programs_offered
+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_admission_procedure:
+ weight: 130
+ settings:
+ rows: 5
+ placeholder: ''
+ third_party_settings: { }
+ type: text_textarea
+ region: content
+ field_check_list:
+ weight: 128
+ settings:
+ rows: 5
+ placeholder: ''
+ third_party_settings: { }
+ type: text_textarea
+ region: content
+ field_counselling_procedure:
+ weight: 125
+ settings:
+ rows: 5
+ placeholder: ''
+ third_party_settings: { }
+ type: text_textarea
+ region: content
+ field_eligibility:
+ weight: 122
+ settings:
+ rows: 5
+ placeholder: ''
+ third_party_settings: { }
+ type: text_textarea
+ region: content
+ field_hostel_details:
+ weight: 126
+ settings:
+ rows: 5
+ placeholder: ''
+ third_party_settings: { }
+ type: text_textarea
+ region: content
+ field_how_to_apply:
+ weight: 127
+ settings:
+ rows: 5
+ placeholder: ''
+ third_party_settings: { }
+ type: text_textarea
+ region: content
+ field_information_brochure:
+ weight: 124
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_required_documents:
+ weight: 129
+ settings:
+ rows: 5
+ placeholder: ''
+ third_party_settings: { }
+ type: text_textarea
+ 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/programs/config/install/core.entity_view_display.node.programs_offered.default.yml b/modules/mansimran/programs/config/install/core.entity_view_display.node.programs_offered.default.yml
new file mode 100755
index 0000000..867ca69
--- /dev/null
+++ b/modules/mansimran/programs/config/install/core.entity_view_display.node.programs_offered.default.yml
@@ -0,0 +1,101 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.programs_offered.body
+ - field.field.node.programs_offered.field_admission_procedure
+ - field.field.node.programs_offered.field_check_list
+ - field.field.node.programs_offered.field_counselling_procedure
+ - field.field.node.programs_offered.field_eligibility
+ - field.field.node.programs_offered.field_hostel_details
+ - field.field.node.programs_offered.field_how_to_apply
+ - field.field.node.programs_offered.field_information_brochure
+ - field.field.node.programs_offered.field_required_documents
+ - node.type.programs_offered
+ module:
+ - link
+ - text
+ - user
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.default
+targetEntityType: node
+bundle: programs_offered
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 101
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_admission_procedure:
+ weight: 110
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: text_default
+ region: content
+ field_check_list:
+ weight: 108
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: text_default
+ region: content
+ field_counselling_procedure:
+ weight: 105
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: text_default
+ region: content
+ field_eligibility:
+ weight: 102
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: text_default
+ region: content
+ field_hostel_details:
+ weight: 106
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: text_default
+ region: content
+ field_how_to_apply:
+ weight: 107
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: text_default
+ region: content
+ field_information_brochure:
+ weight: 104
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_required_documents:
+ weight: 109
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: text_default
+ region: content
+ links:
+ weight: 100
+ settings: { }
+ third_party_settings: { }
+ region: content
+hidden:
+ langcode: true
diff --git a/modules/mansimran/programs/config/install/core.entity_view_display.node.programs_offered.teaser.yml b/modules/mansimran/programs/config/install/core.entity_view_display.node.programs_offered.teaser.yml
new file mode 100755
index 0000000..6520be6
--- /dev/null
+++ b/modules/mansimran/programs/config/install/core.entity_view_display.node.programs_offered.teaser.yml
@@ -0,0 +1,33 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.programs_offered.body
+ - node.type.programs_offered
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.teaser
+targetEntityType: node
+bundle: programs_offered
+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/mansimran/programs/config/install/field.field.node.programs_offered.body.yml b/modules/mansimran/programs/config/install/field.field.node.programs_offered.body.yml
new file mode 100755
index 0000000..e60a59e
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.field.node.programs_offered.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.programs_offered
+ module:
+ - text
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.body
+field_name: body
+entity_type: node
+bundle: programs_offered
+label: courses
+description: ''
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_admission_procedure.yml b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_admission_procedure.yml
new file mode 100755
index 0000000..7f8c094
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_admission_procedure.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_admission_procedure
+ - node.type.programs_offered
+ module:
+ - text
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.field_admission_procedure
+field_name: field_admission_procedure
+entity_type: node
+bundle: programs_offered
+label: 'admission procedure'
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: text_long
diff --git a/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_check_list.yml b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_check_list.yml
new file mode 100755
index 0000000..dca2672
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_check_list.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_check_list
+ - node.type.programs_offered
+ module:
+ - text
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.field_check_list
+field_name: field_check_list
+entity_type: node
+bundle: programs_offered
+label: 'check list'
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: text_long
diff --git a/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_counselling_procedure.yml b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_counselling_procedure.yml
new file mode 100755
index 0000000..a31002c
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_counselling_procedure.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_counselling_procedure
+ - node.type.programs_offered
+ module:
+ - text
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.field_counselling_procedure
+field_name: field_counselling_procedure
+entity_type: node
+bundle: programs_offered
+label: 'counselling procedure'
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: text_long
diff --git a/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_eligibility.yml b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_eligibility.yml
new file mode 100755
index 0000000..b1ea92d
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_eligibility.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_eligibility
+ - node.type.programs_offered
+ module:
+ - text
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.field_eligibility
+field_name: field_eligibility
+entity_type: node
+bundle: programs_offered
+label: eligibility
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: text_long
diff --git a/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_hostel_details.yml b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_hostel_details.yml
new file mode 100755
index 0000000..60f98ce
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_hostel_details.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_hostel_details
+ - node.type.programs_offered
+ module:
+ - text
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.field_hostel_details
+field_name: field_hostel_details
+entity_type: node
+bundle: programs_offered
+label: 'hostel details'
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: text_long
diff --git a/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_how_to_apply.yml b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_how_to_apply.yml
new file mode 100755
index 0000000..a85e1c9
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_how_to_apply.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_how_to_apply
+ - node.type.programs_offered
+ module:
+ - text
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.field_how_to_apply
+field_name: field_how_to_apply
+entity_type: node
+bundle: programs_offered
+label: 'how to apply'
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: text_long
diff --git a/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_information_brochure.yml b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_information_brochure.yml
new file mode 100755
index 0000000..a83270c
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_information_brochure.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_information_brochure
+ - node.type.programs_offered
+ module:
+ - link
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.field_information_brochure
+field_name: field_information_brochure
+entity_type: node
+bundle: programs_offered
+label: 'information brochure'
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_required_documents.yml b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_required_documents.yml
new file mode 100755
index 0000000..587a362
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.field.node.programs_offered.field_required_documents.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_required_documents
+ - node.type.programs_offered
+ module:
+ - text
+ enforced:
+ module:
+ - programs
+id: node.programs_offered.field_required_documents
+field_name: field_required_documents
+entity_type: node
+bundle: programs_offered
+label: 'required documents'
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: text_long
diff --git a/modules/mansimran/programs/config/install/field.storage.node.field_admission_procedure.yml b/modules/mansimran/programs/config/install/field.storage.node.field_admission_procedure.yml
new file mode 100755
index 0000000..fb89d4f
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.storage.node.field_admission_procedure.yml
@@ -0,0 +1,22 @@
+uuid: 2f8dffc4-0fec-4ab1-8a86-b8ffe1ecb9c7
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - text
+ enforced:
+ module:
+ - programs
+id: node.field_admission_procedure
+field_name: field_admission_procedure
+entity_type: node
+type: text_long
+settings: { }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/programs/config/install/field.storage.node.field_check_list.yml b/modules/mansimran/programs/config/install/field.storage.node.field_check_list.yml
new file mode 100755
index 0000000..abfdd5b
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.storage.node.field_check_list.yml
@@ -0,0 +1,22 @@
+uuid: 6db3a9c7-6d4d-4a9c-a4c1-8316d39913bf
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - text
+ enforced:
+ module:
+ - programs
+id: node.field_check_list
+field_name: field_check_list
+entity_type: node
+type: text_long
+settings: { }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/programs/config/install/field.storage.node.field_counselling_procedure.yml b/modules/mansimran/programs/config/install/field.storage.node.field_counselling_procedure.yml
new file mode 100755
index 0000000..6c6657a
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.storage.node.field_counselling_procedure.yml
@@ -0,0 +1,22 @@
+uuid: 58e414fb-a660-49e4-bc1c-3935d4c30a15
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - text
+ enforced:
+ module:
+ - programs
+id: node.field_counselling_procedure
+field_name: field_counselling_procedure
+entity_type: node
+type: text_long
+settings: { }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/programs/config/install/field.storage.node.field_eligibility.yml b/modules/mansimran/programs/config/install/field.storage.node.field_eligibility.yml
new file mode 100755
index 0000000..072484a
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.storage.node.field_eligibility.yml
@@ -0,0 +1,22 @@
+uuid: d4a23da2-0f38-4414-90e0-2f795afdae30
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - text
+ enforced:
+ module:
+ - programs
+id: node.field_eligibility
+field_name: field_eligibility
+entity_type: node
+type: text_long
+settings: { }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/programs/config/install/field.storage.node.field_hostel_details.yml b/modules/mansimran/programs/config/install/field.storage.node.field_hostel_details.yml
new file mode 100755
index 0000000..0fc2632
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.storage.node.field_hostel_details.yml
@@ -0,0 +1,22 @@
+uuid: aa774c28-4974-46a5-9ac3-af521863c6ff
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - text
+ enforced:
+ module:
+ - programs
+id: node.field_hostel_details
+field_name: field_hostel_details
+entity_type: node
+type: text_long
+settings: { }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/programs/config/install/field.storage.node.field_how_to_apply.yml b/modules/mansimran/programs/config/install/field.storage.node.field_how_to_apply.yml
new file mode 100755
index 0000000..fb8124a
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.storage.node.field_how_to_apply.yml
@@ -0,0 +1,22 @@
+uuid: bd6074ff-88e1-456c-a30a-26b3108c7d50
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - text
+ enforced:
+ module:
+ - programs
+id: node.field_how_to_apply
+field_name: field_how_to_apply
+entity_type: node
+type: text_long
+settings: { }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/programs/config/install/field.storage.node.field_information_brochure.yml b/modules/mansimran/programs/config/install/field.storage.node.field_information_brochure.yml
new file mode 100755
index 0000000..9abe904
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.storage.node.field_information_brochure.yml
@@ -0,0 +1,22 @@
+uuid: 802f6758-89ef-42a4-9e45-95d9f2e9a088
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - programs
+id: node.field_information_brochure
+field_name: field_information_brochure
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/programs/config/install/field.storage.node.field_required_documents.yml b/modules/mansimran/programs/config/install/field.storage.node.field_required_documents.yml
new file mode 100755
index 0000000..8aafeaa
--- /dev/null
+++ b/modules/mansimran/programs/config/install/field.storage.node.field_required_documents.yml
@@ -0,0 +1,22 @@
+uuid: 13d44f7f-5d9a-4c4b-aba3-e5fc4f105d81
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - text
+ enforced:
+ module:
+ - programs
+id: node.field_required_documents
+field_name: field_required_documents
+entity_type: node
+type: text_long
+settings: { }
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/programs/config/install/migrate_plus.migration.programs_offered_1.yml b/modules/mansimran/programs/config/install/migrate_plus.migration.programs_offered_1.yml
new file mode 100644
index 0000000..a9eb3ce
--- /dev/null
+++ b/modules/mansimran/programs/config/install/migrate_plus.migration.programs_offered_1.yml
@@ -0,0 +1,63 @@
+uuid: 2eb5920b-fc8c-41ab-a644-94eb0c0b04fa
+langcode: en
+id: programs_offered_1
+status: true
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'programs_offered_csv_import1'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/program.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+process:
+ type:
+ plugin: default_value
+ default_value: programs_offered
+ title: title
+ body/value: courses
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_admission_procedure/value: admission_procedure
+ field_admission_procedure/format:
+ plugin: default_value
+ default_value: basic_html
+ field_check_list/value: check_list
+ field_check_list/format:
+ plugin: default_value
+ default_value: basic_html
+ field_counselling_procedure/value: counselling_procedure
+ field_counselling_procedure/format:
+ plugin: default_value
+ default_value: basic_html
+ field_eligibility/value: eligibility
+ field_eligibility/format:
+ plugin: default_value
+ default_value: basic_html
+ field_hostel_details/value: hostel_details
+ field_hostel_details/format:
+ plugin: default_value
+ default_value: basic_html
+ field_how_to_apply/value: how_to_apply
+ field_how_to_apply/format:
+ plugin: default_value
+ default_value: basic_html
+ field_information_brochure/uri: information_brochure
+ field_required_documents/value: required_documents
+ field_required_documents/format:
+ plugin: default_value
+ default_value: basic_html
+destination:
+ plugin: 'entity:node'
+ bundle: programs_offered
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/programs/config/install/node.type.programs_offered.yml b/modules/mansimran/programs/config/install/node.type.programs_offered.yml
new file mode 100755
index 0000000..cdef181
--- /dev/null
+++ b/modules/mansimran/programs/config/install/node.type.programs_offered.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - programs
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: 'programs offered'
+type: programs_offered
+description: 'Programs offered by Vit'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/programs/programs.info.yml b/modules/mansimran/programs/programs.info.yml
new file mode 100755
index 0000000..18bf5a8
--- /dev/null
+++ b/modules/mansimran/programs/programs.info.yml
@@ -0,0 +1,12 @@
+name: 'programs'
+type: module
+description: 'My Awesome Module'
+core: 8.x
+package: 'Custom'
+dependecies:
+ - drupal:path
+ - drupal:link
+ - drupal:text
+ - drupal:user
+ - drupal:node
+ - drupal:menu_ui
diff --git a/modules/mansimran/programs/programs.module b/modules/mansimran/programs/programs.module
new file mode 100755
index 0000000..ee88e2b
--- /dev/null
+++ b/modules/mansimran/programs/programs.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains programs.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function programs_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the programs module.
+ case 'help.page.programs':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('My Awesome Module') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function programs_theme() {
+ return [
+ 'programs' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/programs/templates/programs.html.twig b/modules/mansimran/programs/templates/programs.html.twig
new file mode 100755
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/programs/templates/programs.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/programs/tests/src/Functional/LoadTest.php b/modules/mansimran/programs/tests/src/Functional/LoadTest.php
new file mode 100755
index 0000000..8d3d7ab
--- /dev/null
+++ b/modules/mansimran/programs/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\programs\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group programs
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['programs'];
+
+ /**
+ * 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);
+ }
+
+}
diff --git a/modules/mansimran/research_centers/composer.json b/modules/mansimran/research_centers/composer.json
new file mode 100644
index 0000000..d1be1cc
--- /dev/null
+++ b/modules/mansimran/research_centers/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/research_centers",
+ "type": "drupal-module",
+ "description": "Research centers content type",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/research_centers",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/research_centers",
+ "source": "http://cgit.drupalcode.org/research_centers"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/research_centers/config/install/core.entity_form_display.node.research_centers.default.yml b/modules/mansimran/research_centers/config/install/core.entity_form_display.node.research_centers.default.yml
new file mode 100644
index 0000000..4d1a00a
--- /dev/null
+++ b/modules/mansimran/research_centers/config/install/core.entity_form_display.node.research_centers.default.yml
@@ -0,0 +1,84 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.research_centers.body
+ - node.type.research_centers
+ module:
+ - path
+ - text
+ enforced:
+ module:
+ - research_centers
+id: node.research_centers.default
+targetEntityType: node
+bundle: research_centers
+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: { }
+ 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/research_centers/config/install/core.entity_view_display.node.research_centers.default.yml b/modules/mansimran/research_centers/config/install/core.entity_view_display.node.research_centers.default.yml
new file mode 100644
index 0000000..cc5ce4f
--- /dev/null
+++ b/modules/mansimran/research_centers/config/install/core.entity_view_display.node.research_centers.default.yml
@@ -0,0 +1,31 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.research_centers.body
+ - node.type.research_centers
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - research_centers
+id: node.research_centers.default
+targetEntityType: node
+bundle: research_centers
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 101
+ settings: { }
+ third_party_settings: { }
+ region: content
+ links:
+ weight: 100
+ settings: { }
+ third_party_settings: { }
+ region: content
+hidden:
+ langcode: true
diff --git a/modules/mansimran/research_centers/config/install/core.entity_view_display.node.research_centers.teaser.yml b/modules/mansimran/research_centers/config/install/core.entity_view_display.node.research_centers.teaser.yml
new file mode 100644
index 0000000..209e923
--- /dev/null
+++ b/modules/mansimran/research_centers/config/install/core.entity_view_display.node.research_centers.teaser.yml
@@ -0,0 +1,33 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.research_centers.body
+ - node.type.research_centers
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - research_centers
+id: node.research_centers.teaser
+targetEntityType: node
+bundle: research_centers
+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:
+ langcode: true
diff --git a/modules/mansimran/research_centers/config/install/field.field.node.research_centers.body.yml b/modules/mansimran/research_centers/config/install/field.field.node.research_centers.body.yml
new file mode 100644
index 0000000..47e04d8
--- /dev/null
+++ b/modules/mansimran/research_centers/config/install/field.field.node.research_centers.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.research_centers
+ module:
+ - text
+ enforced:
+ module:
+ - research_centers
+id: node.research_centers.body
+field_name: body
+entity_type: node
+bundle: research_centers
+label: Body
+description: 'Description about the functionality of the research center'
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/research_centers/config/install/migrate_plus.migration.research_center_1.yml b/modules/mansimran/research_centers/config/install/migrate_plus.migration.research_center_1.yml
new file mode 100644
index 0000000..313b730
--- /dev/null
+++ b/modules/mansimran/research_centers/config/install/migrate_plus.migration.research_center_1.yml
@@ -0,0 +1,45 @@
+uuid: 7668fb9e-4358-4d30-b9e1-1cb8071ceba0
+langcode: en
+id: research_center_1
+status: true
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'research_center_csv_import1'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/research_centers.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+process:
+ type:
+ plugin: default_value
+ default_value: research_centers
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: logo
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - logo
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+destination:
+ plugin: 'entity:node'
+ bundle: club_and_chapter
+migration_dependencies:
+ required: { }
+ optional: { }
diff --git a/modules/mansimran/research_centers/config/install/node.type.research_centers.yml b/modules/mansimran/research_centers/config/install/node.type.research_centers.yml
new file mode 100644
index 0000000..032c16a
--- /dev/null
+++ b/modules/mansimran/research_centers/config/install/node.type.research_centers.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - research_centers
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: 'Research Centers'
+type: research_centers
+description: 'The different Research Centers of VIT'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/research_centers/research_centers.info.yml b/modules/mansimran/research_centers/research_centers.info.yml
new file mode 100644
index 0000000..35b4f19
--- /dev/null
+++ b/modules/mansimran/research_centers/research_centers.info.yml
@@ -0,0 +1,10 @@
+name: 'research centers'
+type: module
+description: 'Research centers content type'
+core: 8.x
+package: 'Custom'
+dependencies:
+ - drupal:text
+ - drupal:user
+ - drupal:menu_ui
+ - drupal:path \ No newline at end of file
diff --git a/modules/mansimran/research_centers/research_centers.module b/modules/mansimran/research_centers/research_centers.module
new file mode 100644
index 0000000..ea01abc
--- /dev/null
+++ b/modules/mansimran/research_centers/research_centers.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains research_centers.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function research_centers_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the research_centers module.
+ case 'help.page.research_centers':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('Research centers content type') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function research_centers_theme() {
+ return [
+ 'research_centers' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/research_centers/templates/research-centers.html.twig b/modules/mansimran/research_centers/templates/research-centers.html.twig
new file mode 100644
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/research_centers/templates/research-centers.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/research_centers/tests/src/Functional/LoadTest.php b/modules/mansimran/research_centers/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..42318ed
--- /dev/null
+++ b/modules/mansimran/research_centers/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\research_centers\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group research_centers
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['research_centers'];
+
+ /**
+ * 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);
+ }
+
+}
diff --git a/modules/mansimran/sae_teams/composer.json b/modules/mansimran/sae_teams/composer.json
new file mode 100644
index 0000000..c1314eb
--- /dev/null
+++ b/modules/mansimran/sae_teams/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/sae_teams",
+ "type": "drupal-module",
+ "description": "sae teams content type import",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/sae_teams",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/sae_teams",
+ "source": "http://cgit.drupalcode.org/sae_teams"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/sae_teams/config/install/core.entity_form_display.node.sae_teams_.default.yml b/modules/mansimran/sae_teams/config/install/core.entity_form_display.node.sae_teams_.default.yml
new file mode 100644
index 0000000..a986535
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/core.entity_form_display.node.sae_teams_.default.yml
@@ -0,0 +1,114 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.sae_teams_.body
+ - field.field.node.sae_teams_.field_sae_facebook_link
+ - field.field.node.sae_teams_.field_team_photo
+ - field.field.node.sae_teams_.field_youtube_link
+ - image.style.thumbnail
+ - node.type.sae_teams_
+ module:
+ - image
+ - link
+ - path
+ - text
+ enforced:
+ module:
+ - sae_teams
+id: node.sae_teams_.default
+targetEntityType: node
+bundle: sae_teams_
+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_sae_facebook_link:
+ weight: 124
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_team_photo:
+ weight: 122
+ settings:
+ progress_indicator: throbber
+ preview_image_style: thumbnail
+ third_party_settings: { }
+ type: image_image
+ region: content
+ field_youtube_link:
+ weight: 123
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ 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/sae_teams/config/install/core.entity_view_display.node.sae_teams_.default.yml b/modules/mansimran/sae_teams/config/install/core.entity_view_display.node.sae_teams_.default.yml
new file mode 100644
index 0000000..6a05f95
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/core.entity_view_display.node.sae_teams_.default.yml
@@ -0,0 +1,69 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.sae_teams_.body
+ - field.field.node.sae_teams_.field_sae_facebook_link
+ - field.field.node.sae_teams_.field_team_photo
+ - field.field.node.sae_teams_.field_youtube_link
+ - node.type.sae_teams_
+ module:
+ - image
+ - link
+ - text
+ - user
+ enforced:
+ module:
+ - sae_teams
+id: node.sae_teams_.default
+targetEntityType: node
+bundle: sae_teams_
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 101
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_sae_facebook_link:
+ weight: 104
+ label: hidden
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_team_photo:
+ weight: 102
+ label: above
+ settings:
+ image_style: ''
+ image_link: ''
+ third_party_settings: { }
+ type: image
+ region: content
+ field_youtube_link:
+ weight: 103
+ label: hidden
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ links:
+ weight: 100
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ langcode: true
diff --git a/modules/mansimran/sae_teams/config/install/core.entity_view_display.node.sae_teams_.teaser.yml b/modules/mansimran/sae_teams/config/install/core.entity_view_display.node.sae_teams_.teaser.yml
new file mode 100644
index 0000000..19b81e7
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/core.entity_view_display.node.sae_teams_.teaser.yml
@@ -0,0 +1,37 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.sae_teams_.body
+ - field.field.node.sae_teams_.field_team_photo
+ - field.field.node.sae_teams_.field_youtube_link
+ - node.type.sae_teams_
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - sae_teams
+id: node.sae_teams_.teaser
+targetEntityType: node
+bundle: sae_teams_
+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_team_photo: true
+ field_youtube_link: true
+ langcode: true
diff --git a/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.body.yml b/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.body.yml
new file mode 100644
index 0000000..40261f0
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.sae_teams_
+ module:
+ - text
+ enforced:
+ module:
+ - sae_teams
+id: node.sae_teams_.body
+field_name: body
+entity_type: node
+bundle: sae_teams_
+label: Body
+description: 'A description about sae teams '
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_sae_facebook_link.yml b/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_sae_facebook_link.yml
new file mode 100644
index 0000000..aa8b9db
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_sae_facebook_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_sae_facebook_link
+ - node.type.sae_teams_
+ module:
+ - link
+ enforced:
+ module:
+ - sae_teams
+id: node.sae_teams_.field_sae_facebook_link
+field_name: field_sae_facebook_link
+entity_type: node
+bundle: sae_teams_
+label: 'sae Facebook Link'
+description: 'Facebook link of sae teams'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_team_photo.yml b/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_team_photo.yml
new file mode 100644
index 0000000..ac46b44
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_team_photo.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_team_photo
+ - node.type.sae_teams_
+ module:
+ - image
+ enforced:
+ module:
+ - sae_teams
+id: node.sae_teams_.field_team_photo
+field_name: field_team_photo
+entity_type: node
+bundle: sae_teams_
+label: 'Team photo'
+description: 'Team photo'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: 'sae teams'
+ 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/sae_teams/config/install/field.field.node.sae_teams_.field_youtube_link.yml b/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_youtube_link.yml
new file mode 100644
index 0000000..d5294f2
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/field.field.node.sae_teams_.field_youtube_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_youtube_link
+ - node.type.sae_teams_
+ module:
+ - link
+ enforced:
+ module:
+ - sae_teams
+id: node.sae_teams_.field_youtube_link
+field_name: field_youtube_link
+entity_type: node
+bundle: sae_teams_
+label: 'youtube link'
+description: 'Link to youtube video of the team'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/sae_teams/config/install/field.storage.node.field_sae_facebook_link.yml b/modules/mansimran/sae_teams/config/install/field.storage.node.field_sae_facebook_link.yml
new file mode 100644
index 0000000..dad0b20
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/field.storage.node.field_sae_facebook_link.yml
@@ -0,0 +1,22 @@
+uuid: c3d0e69f-f106-4c3f-ba98-ed8bec5cb2c6
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - sae_teams
+id: node.field_sae_facebook_link
+field_name: field_sae_facebook_link
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/sae_teams/config/install/field.storage.node.field_team_photo.yml b/modules/mansimran/sae_teams/config/install/field.storage.node.field_team_photo.yml
new file mode 100644
index 0000000..1555173
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/field.storage.node.field_team_photo.yml
@@ -0,0 +1,33 @@
+uuid: e6e5bd57-09d6-4d32-b3bb-c35a57fc4f03
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - image
+ - node
+ enforced:
+ module:
+ - sae_teams
+id: node.field_team_photo
+field_name: field_team_photo
+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/sae_teams/config/install/field.storage.node.field_youtube_link.yml b/modules/mansimran/sae_teams/config/install/field.storage.node.field_youtube_link.yml
new file mode 100644
index 0000000..56a805e
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/field.storage.node.field_youtube_link.yml
@@ -0,0 +1,22 @@
+uuid: 65ec1261-0ae4-4501-8feb-037b6eb588c4
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - sae_teams
+id: node.field_youtube_link
+field_name: field_youtube_link
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/sae_teams/config/install/migrate_plus.migration.sae_1.yml b/modules/mansimran/sae_teams/config/install/migrate_plus.migration.sae_1.yml
new file mode 100644
index 0000000..ccb6104
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/migrate_plus.migration.sae_1.yml
@@ -0,0 +1,60 @@
+uuid: 4a0c36f4-00c8-4961-8b0f-cd1572c8ae11
+langcode: en
+id: sae_1
+status: true
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'sae_csv_import1'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/sae.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/migrationdata/sae teams
+ file_dest: 'public://sae teams/'
+process:
+ type:
+ plugin: default_value
+ default_value: sae_teams_
+ 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_team_photo:
+ plugin: file_import
+ source: '@source_path'
+ destination: constants/file_dest
+ field_sae_facebook_link/uri: facebook_link
+ field_sae_facebook_link/title:
+ plugin: default_value
+ default_value: 'Facebook Link'
+ field_youtube_link/uri: link
+ field_youtube_link/title:
+ plugin: default_value
+ default_value: 'Youtube Link'
+destination:
+ plugin: 'entity:node'
+ bundle: sae_teams_
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/sae_teams/config/install/node.type.sae_teams_.yml b/modules/mansimran/sae_teams/config/install/node.type.sae_teams_.yml
new file mode 100644
index 0000000..a2100b3
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/node.type.sae_teams_.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - sae_teams
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: 'sae teams'
+type: sae_teams_
+description: 'Various sae teams of VIT'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/sae_teams/sae_teams.info.yml b/modules/mansimran/sae_teams/sae_teams.info.yml
new file mode 100644
index 0000000..d5d63a5
--- /dev/null
+++ b/modules/mansimran/sae_teams/sae_teams.info.yml
@@ -0,0 +1,14 @@
+name: 'sae_teams'
+type: module
+description: 'sae teams content type import'
+core: 8.x
+package: 'Custom'
+dependencies:
+ - drupal:node
+ - drupal:text
+ - drupal:user
+ - drupal:link
+ - drupal:menu_ui
+ - drupal:image
+ - drupal:file
+
diff --git a/modules/mansimran/sae_teams/sae_teams.install b/modules/mansimran/sae_teams/sae_teams.install
new file mode 100644
index 0000000..310ab3d
--- /dev/null
+++ b/modules/mansimran/sae_teams/sae_teams.install
@@ -0,0 +1,26 @@
+
+<?php
+/**
+* Implements hook_uninstall().
+*/
+function sae_teams_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', 'sae_teams_');
+ $nids = $query->execute();
+
+
+
+ // Delete entities.
+ if (!empty($nids)) {
+ $entities = $nodeStorage->loadMultiple($nids);
+ $nodeStorage->delete($entities);
+ }
+}
diff --git a/modules/mansimran/sae_teams/sae_teams.module b/modules/mansimran/sae_teams/sae_teams.module
new file mode 100644
index 0000000..2b7e12a
--- /dev/null
+++ b/modules/mansimran/sae_teams/sae_teams.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains sae_teams.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function sae_teams_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the sae_teams module.
+ case 'help.page.sae_teams':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('sae teams content type import') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function sae_teams_theme() {
+ return [
+ 'sae_teams' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/sae_teams/sae_teams.routing.yml b/modules/mansimran/sae_teams/sae_teams.routing.yml
new file mode 100644
index 0000000..fe57c22
--- /dev/null
+++ b/modules/mansimran/sae_teams/sae_teams.routing.yml
@@ -0,0 +1,8 @@
+
+sae_teams.sae_teams_controller_hello:
+ path: '/sae_teams/hello/{name}'
+ defaults:
+ _controller: '\Drupal\sae_teams\Controller\sae_teamsController::hello'
+ _title: 'sae_teamsController'
+ requirements:
+ _permission: 'access content'
diff --git a/modules/mansimran/sae_teams/src/Controller/sae_teamsController.php b/modules/mansimran/sae_teams/src/Controller/sae_teamsController.php
new file mode 100644
index 0000000..c6b7679
--- /dev/null
+++ b/modules/mansimran/sae_teams/src/Controller/sae_teamsController.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\sae_teams\Controller;
+
+use Drupal\Core\Controller\ControllerBase;
+
+/**
+ * Class sae_teamsController.
+ */
+class sae_teamsController extends ControllerBase {
+
+ /**
+ * Hello.
+ *
+ * @return string
+ * Return Hello string.
+ */
+ public function hello($name) {
+ return [
+ '#type' => 'markup',
+ '#markup' => $this->t('Implement method: hello with parameter(s): $name'),
+ ];
+ }
+
+}
diff --git a/modules/mansimran/sae_teams/templates/sae-teams.html.twig b/modules/mansimran/sae_teams/templates/sae-teams.html.twig
new file mode 100644
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/sae_teams/templates/sae-teams.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/sae_teams/tests/src/Functional/LoadTest.php b/modules/mansimran/sae_teams/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..29e42d5
--- /dev/null
+++ b/modules/mansimran/sae_teams/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\sae_teams\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group sae_teams
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['sae_teams'];
+
+ /**
+ * 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);
+ }
+
+}
diff --git a/modules/mansimran/startups/composer.json b/modules/mansimran/startups/composer.json
new file mode 100644
index 0000000..d88bf22
--- /dev/null
+++ b/modules/mansimran/startups/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/startups",
+ "type": "drupal-module",
+ "description": "startups content type",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/startups",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/startups",
+ "source": "http://cgit.drupalcode.org/startups"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/startups/config/install/core.entity_form_display.node.startups.default.yml b/modules/mansimran/startups/config/install/core.entity_form_display.node.startups.default.yml
new file mode 100644
index 0000000..87b0e71
--- /dev/null
+++ b/modules/mansimran/startups/config/install/core.entity_form_display.node.startups.default.yml
@@ -0,0 +1,123 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.startups.body
+ - field.field.node.startups.field_fac
+ - field.field.node.startups.field_startup_image
+ - field.field.node.startups.field_twitter_link
+ - field.field.node.startups.field_website_link
+ - image.style.thumbnail
+ - node.type.startups
+ module:
+ - image
+ - link
+ - path
+ - text
+ enforced:
+ module:
+ - startups
+id: node.startups.default
+targetEntityType: node
+bundle: startups
+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_fac:
+ weight: 125
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_startup_image:
+ weight: 122
+ settings:
+ progress_indicator: throbber
+ preview_image_style: thumbnail
+ third_party_settings: { }
+ type: image_image
+ region: content
+ field_twitter_link:
+ weight: 126
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_website_link:
+ weight: 123
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ 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/startups/config/install/core.entity_view_display.node.startups.default.yml b/modules/mansimran/startups/config/install/core.entity_view_display.node.startups.default.yml
new file mode 100644
index 0000000..bbdec6f
--- /dev/null
+++ b/modules/mansimran/startups/config/install/core.entity_view_display.node.startups.default.yml
@@ -0,0 +1,82 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.startups.body
+ - field.field.node.startups.field_fac
+ - field.field.node.startups.field_startup_image
+ - field.field.node.startups.field_twitter_link
+ - field.field.node.startups.field_website_link
+ - node.type.startups
+ module:
+ - image
+ - link
+ - text
+ - user
+ enforced:
+ module:
+ - startups
+id: node.startups.default
+targetEntityType: node
+bundle: startups
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 0
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_fac:
+ weight: 3
+ label: hidden
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_startup_image:
+ weight: 1
+ label: hidden
+ settings:
+ image_style: ''
+ image_link: ''
+ third_party_settings: { }
+ type: image
+ region: content
+ field_twitter_link:
+ weight: 4
+ label: hidden
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_website_link:
+ weight: 2
+ label: hidden
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ links:
+ weight: 5
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ langcode: true
diff --git a/modules/mansimran/startups/config/install/core.entity_view_display.node.startups.teaser.yml b/modules/mansimran/startups/config/install/core.entity_view_display.node.startups.teaser.yml
new file mode 100644
index 0000000..5e33224
--- /dev/null
+++ b/modules/mansimran/startups/config/install/core.entity_view_display.node.startups.teaser.yml
@@ -0,0 +1,33 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.startups.body
+ - node.type.startups
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - startups
+id: node.startups.teaser
+targetEntityType: node
+bundle: startups
+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/mansimran/startups/config/install/field.field.node.startups.body.yml b/modules/mansimran/startups/config/install/field.field.node.startups.body.yml
new file mode 100644
index 0000000..6a5487d
--- /dev/null
+++ b/modules/mansimran/startups/config/install/field.field.node.startups.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.startups
+ module:
+ - text
+ enforced:
+ module:
+ - startups
+id: node.startups.body
+field_name: body
+entity_type: node
+bundle: startups
+label: Body
+description: "description about the startup\r\n\r\n"
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/mansimran/startups/config/install/field.field.node.startups.field_fac.yml b/modules/mansimran/startups/config/install/field.field.node.startups.field_fac.yml
new file mode 100644
index 0000000..6c61da9
--- /dev/null
+++ b/modules/mansimran/startups/config/install/field.field.node.startups.field_fac.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_fac
+ - node.type.startups
+ module:
+ - link
+ enforced:
+ module:
+ - startups
+id: node.startups.field_fac
+field_name: field_fac
+entity_type: node
+bundle: startups
+label: 'Facebook Link'
+description: 'Link to facebook page of startup'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/startups/config/install/field.field.node.startups.field_startup_image.yml b/modules/mansimran/startups/config/install/field.field.node.startups.field_startup_image.yml
new file mode 100644
index 0000000..2caa6db
--- /dev/null
+++ b/modules/mansimran/startups/config/install/field.field.node.startups.field_startup_image.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_startup_image
+ - node.type.startups
+ module:
+ - image
+ enforced:
+ module:
+ - startups
+id: node.startups.field_startup_image
+field_name: field_startup_image
+entity_type: node
+bundle: startups
+label: 'startup image'
+description: 'Image of startup'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: startups
+ 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/startups/config/install/field.field.node.startups.field_twitter_link.yml b/modules/mansimran/startups/config/install/field.field.node.startups.field_twitter_link.yml
new file mode 100644
index 0000000..e061215
--- /dev/null
+++ b/modules/mansimran/startups/config/install/field.field.node.startups.field_twitter_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_twitter_link
+ - node.type.startups
+ module:
+ - link
+ enforced:
+ module:
+ - startups
+id: node.startups.field_twitter_link
+field_name: field_twitter_link
+entity_type: node
+bundle: startups
+label: 'Twitter link'
+description: 'Link to twitter page of startup'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/startups/config/install/field.field.node.startups.field_website_link.yml b/modules/mansimran/startups/config/install/field.field.node.startups.field_website_link.yml
new file mode 100644
index 0000000..0642a80
--- /dev/null
+++ b/modules/mansimran/startups/config/install/field.field.node.startups.field_website_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_website_link
+ - node.type.startups
+ module:
+ - link
+ enforced:
+ module:
+ - startups
+id: node.startups.field_website_link
+field_name: field_website_link
+entity_type: node
+bundle: startups
+label: 'Website link'
+description: 'Link to startup website'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/startups/config/install/field.storage.node.field_fac.yml b/modules/mansimran/startups/config/install/field.storage.node.field_fac.yml
new file mode 100644
index 0000000..11d144a
--- /dev/null
+++ b/modules/mansimran/startups/config/install/field.storage.node.field_fac.yml
@@ -0,0 +1,22 @@
+uuid: 7d236b24-5c49-4453-bd3a-1677efa27756
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - startups
+id: node.field_fac
+field_name: field_fac
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/startups/config/install/field.storage.node.field_startup_image.yml b/modules/mansimran/startups/config/install/field.storage.node.field_startup_image.yml
new file mode 100644
index 0000000..63d4731
--- /dev/null
+++ b/modules/mansimran/startups/config/install/field.storage.node.field_startup_image.yml
@@ -0,0 +1,33 @@
+uuid: 93845d49-4e40-4b45-afd7-fe72de5fe49d
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - image
+ - node
+ enforced:
+ module:
+ - startups
+id: node.field_startup_image
+field_name: field_startup_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/startups/config/install/field.storage.node.field_twitter_link.yml b/modules/mansimran/startups/config/install/field.storage.node.field_twitter_link.yml
new file mode 100644
index 0000000..e19d298
--- /dev/null
+++ b/modules/mansimran/startups/config/install/field.storage.node.field_twitter_link.yml
@@ -0,0 +1,22 @@
+uuid: 37fe0a08-9f47-46b2-9345-153a73d56665
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - startups
+id: node.field_twitter_link
+field_name: field_twitter_link
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/startups/config/install/field.storage.node.field_website_link.yml b/modules/mansimran/startups/config/install/field.storage.node.field_website_link.yml
new file mode 100644
index 0000000..6f17116
--- /dev/null
+++ b/modules/mansimran/startups/config/install/field.storage.node.field_website_link.yml
@@ -0,0 +1,22 @@
+uuid: 66e04bca-9f7d-43c0-a750-8512cd0dd1ba
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - startups
+id: node.field_website_link
+field_name: field_website_link
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/startups/config/install/migrate_plus.migration.startups_1.yml b/modules/mansimran/startups/config/install/migrate_plus.migration.startups_1.yml
new file mode 100644
index 0000000..c90aa0f
--- /dev/null
+++ b/modules/mansimran/startups/config/install/migrate_plus.migration.startups_1.yml
@@ -0,0 +1,64 @@
+uuid: 428450d7-45f6-400c-b7e1-57b14e9d348d
+langcode: en
+id: startups_1
+status: true
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'startups_csv_import1'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/startups1.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/migrationdata/startups
+ file_dest: 'public://startups/'
+process:
+ type:
+ plugin: default_value
+ default_value: startups
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: image
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - image
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_fac/uri: fb_link
+ field_fac/title:
+ plugin: default_value
+ default_value: 'Fb Link'
+ field_startup_image:
+ plugin: file_import
+ source: '@source_path'
+ destination: constants/file_dest
+ field_twitter_link/uri: twitter_link
+ field_twitter_link/title:
+ plugin: default_value
+ default_value: 'Twitter Link'
+ field_website_link/uri: website
+ field_website_link/title:
+ plugin: default_value
+ default_value: 'Startup website'
+destination:
+ plugin: 'entity:node'
+ bundle: startups
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/startups/config/install/node.type.startups.yml b/modules/mansimran/startups/config/install/node.type.startups.yml
new file mode 100644
index 0000000..de62c03
--- /dev/null
+++ b/modules/mansimran/startups/config/install/node.type.startups.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - startups
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: startups
+type: startups
+description: 'A list of startups in campus'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/startups/src/Controller/startupsController.php b/modules/mansimran/startups/src/Controller/startupsController.php
new file mode 100644
index 0000000..a80cf11
--- /dev/null
+++ b/modules/mansimran/startups/src/Controller/startupsController.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\startups\Controller;
+
+use Drupal\Core\Controller\ControllerBase;
+
+/**
+ * Class startupsController.
+ */
+class startupsController extends ControllerBase {
+
+ /**
+ * Hello.
+ *
+ * @return string
+ * Return Hello string.
+ */
+ public function hello($name) {
+ return [
+ '#type' => 'markup',
+ '#markup' => $this->t('Implement method: hello with parameter(s): $name'),
+ ];
+ }
+
+}
diff --git a/modules/mansimran/startups/startups.info.yml b/modules/mansimran/startups/startups.info.yml
new file mode 100644
index 0000000..96618d1
--- /dev/null
+++ b/modules/mansimran/startups/startups.info.yml
@@ -0,0 +1,13 @@
+name: 'startups'
+type: module
+description: 'startups content type'
+core: 8.x
+package: 'Custom'
+dependencies:
+ - drupal:node
+ - drupal:link
+ - drupal:file
+ - drupal:image
+ - drupal:text
+ - drupal:user
+ - drupal:menu_ui
diff --git a/modules/mansimran/startups/startups.install b/modules/mansimran/startups/startups.install
new file mode 100644
index 0000000..273a08b
--- /dev/null
+++ b/modules/mansimran/startups/startups.install
@@ -0,0 +1,27 @@
+
+<?php
+/**
+* Implements hook_uninstall().
+*/
+function startups_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', 'startups');
+ $nids = $query->execute();
+
+
+
+ // Delete entities.
+ if (!empty($nids)) {
+ $entities = $nodeStorage->loadMultiple($nids);
+ $nodeStorage->delete($entities);
+ }
+}
+
diff --git a/modules/mansimran/startups/startups.module b/modules/mansimran/startups/startups.module
new file mode 100644
index 0000000..b704942
--- /dev/null
+++ b/modules/mansimran/startups/startups.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains startups.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function startups_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the startups module.
+ case 'help.page.startups':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('startups content type') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function startups_theme() {
+ return [
+ 'startups' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/startups/startups.routing.yml b/modules/mansimran/startups/startups.routing.yml
new file mode 100644
index 0000000..a1edf8f
--- /dev/null
+++ b/modules/mansimran/startups/startups.routing.yml
@@ -0,0 +1,8 @@
+
+startups.startups_controller_hello:
+ path: '/startups/hello/{name}'
+ defaults:
+ _controller: '\Drupal\startups\Controller\startupsController::hello'
+ _title: 'startupsController'
+ requirements:
+ _permission: 'access content'
diff --git a/modules/mansimran/startups/templates/startups.html.twig b/modules/mansimran/startups/templates/startups.html.twig
new file mode 100644
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/startups/templates/startups.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/startups/tests/src/Functional/LoadTest.php b/modules/mansimran/startups/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..949df7a
--- /dev/null
+++ b/modules/mansimran/startups/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\startups\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group startups
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['startups'];
+
+ /**
+ * 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);
+ }
+
+}
diff --git a/modules/mansimran/student_clubs/composer.json b/modules/mansimran/student_clubs/composer.json
new file mode 100755
index 0000000..3c4d6b7
--- /dev/null
+++ b/modules/mansimran/student_clubs/composer.json
@@ -0,0 +1,14 @@
+{
+ "name": "drupal/student_clubs",
+ "type": "drupal-module",
+ "description": "My Awesome Module",
+ "keywords": ["Drupal"],
+ "license": "GPL-2.0+",
+ "homepage": "https://www.drupal.org/project/student_clubs",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/student_clubs",
+ "source": "http://cgit.drupalcode.org/student_clubs"
+ },
+ "require": { }
+}
diff --git a/modules/mansimran/student_clubs/config/install/core.entity_form_display.node.club_and_chapter.default.yml b/modules/mansimran/student_clubs/config/install/core.entity_form_display.node.club_and_chapter.default.yml
new file mode 100755
index 0000000..e08e012
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/core.entity_form_display.node.club_and_chapter.default.yml
@@ -0,0 +1,115 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.club_and_chapter.body
+ - field.field.node.club_and_chapter.field_facebook_link
+ - field.field.node.club_and_chapter.field_logo_of_organisation
+ - field.field.node.club_and_chapter.field_organisation_category
+ - image.style.thumbnail
+ - node.type.club_and_chapter
+ module:
+ - image
+ - link
+ - path
+ - text
+ enforced:
+ module:
+ - student_clubs
+id: node.club_and_chapter.default
+targetEntityType: node
+bundle: club_and_chapter
+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_facebook_link:
+ weight: 125
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_logo_of_organisation:
+ weight: 123
+ settings:
+ progress_indicator: throbber
+ preview_image_style: thumbnail
+ third_party_settings: { }
+ type: image_image
+ region: content
+ field_organisation_category:
+ weight: 127
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ type: entity_reference_autocomplete
+ 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/student_clubs/config/install/core.entity_view_display.node.club_and_chapter.default.yml b/modules/mansimran/student_clubs/config/install/core.entity_view_display.node.club_and_chapter.default.yml
new file mode 100755
index 0000000..7cf416f
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/core.entity_view_display.node.club_and_chapter.default.yml
@@ -0,0 +1,65 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.club_and_chapter.body
+ - field.field.node.club_and_chapter.field_facebook_link
+ - field.field.node.club_and_chapter.field_logo_of_organisation
+ - field.field.node.club_and_chapter.field_organisation_category
+ - node.type.club_and_chapter
+ module:
+ - image
+ - link
+ - text
+ - user
+ enforced:
+ module:
+ - student_clubs
+id: node.club_and_chapter.default
+targetEntityType: node
+bundle: club_and_chapter
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 101
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_facebook_link:
+ weight: 105
+ label: hidden
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_logo_of_organisation:
+ weight: 103
+ label: hidden
+ settings:
+ image_style: ''
+ image_link: ''
+ third_party_settings: { }
+ type: image
+ region: content
+ field_organisation_category:
+ weight: 107
+ label: hidden
+ settings:
+ link: true
+ third_party_settings: { }
+ type: entity_reference_label
+ region: content
+ links:
+ weight: 100
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ langcode: true
diff --git a/modules/mansimran/student_clubs/config/install/core.entity_view_display.node.club_and_chapter.teaser.yml b/modules/mansimran/student_clubs/config/install/core.entity_view_display.node.club_and_chapter.teaser.yml
new file mode 100755
index 0000000..c9112c6
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/core.entity_view_display.node.club_and_chapter.teaser.yml
@@ -0,0 +1,39 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.club_and_chapter.body
+ - field.field.node.club_and_chapter.field_facebook_link
+ - field.field.node.club_and_chapter.field_logo_of_organisation
+ - field.field.node.club_and_chapter.field_organisation_category
+ - node.type.club_and_chapter
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - student_clubs
+id: node.club_and_chapter.teaser
+targetEntityType: node
+bundle: club_and_chapter
+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_facebook_link: true
+ field_logo_of_organisation: true
+ field_organisation_category: true
+ langcode: true
diff --git a/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.body.yml b/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.body.yml
new file mode 100755
index 0000000..246a310
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.club_and_chapter
+ module:
+ - text
+ enforced:
+ module:
+ - student_clubs
+id: node.club_and_chapter.body
+field_name: body
+entity_type: node
+bundle: club_and_chapter
+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/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_facebook_link.yml b/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_facebook_link.yml
new file mode 100755
index 0000000..f2c9f9c
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_facebook_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_facebook_link
+ - node.type.club_and_chapter
+ module:
+ - link
+ enforced:
+ module:
+ - student_clubs
+id: node.club_and_chapter.field_facebook_link
+field_name: field_facebook_link
+entity_type: node
+bundle: club_and_chapter
+label: 'Facebook Link'
+description: 'Link to Facebook page'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_logo_of_organisation.yml b/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_logo_of_organisation.yml
new file mode 100755
index 0000000..0d04a2c
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_logo_of_organisation.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_logo_of_organisation
+ - node.type.club_and_chapter
+ module:
+ - image
+ enforced:
+ module:
+ - student_clubs
+id: node.club_and_chapter.field_logo_of_organisation
+field_name: field_logo_of_organisation
+entity_type: node
+bundle: club_and_chapter
+label: 'logo of organisation'
+description: 'Logo of the organisation'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: clubs
+ 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/student_clubs/config/install/field.field.node.club_and_chapter.field_organisation_category.yml b/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_organisation_category.yml
new file mode 100755
index 0000000..5f2b3ac
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/field.field.node.club_and_chapter.field_organisation_category.yml
@@ -0,0 +1,31 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_organisation_category
+ - node.type.club_and_chapter
+ - taxonomy.vocabulary.category_of_organisation
+ enforced:
+ module:
+ - student_clubs
+id: node.club_and_chapter.field_organisation_category
+field_name: field_organisation_category
+entity_type: node
+bundle: club_and_chapter
+label: 'organisation category'
+description: 'The category the organisation belongs to'
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ handler: 'default:taxonomy_term'
+ handler_settings:
+ target_bundles:
+ category_of_organisation: category_of_organisation
+ sort:
+ field: name
+ direction: asc
+ auto_create: false
+ auto_create_bundle: ''
+field_type: entity_reference
diff --git a/modules/mansimran/student_clubs/config/install/field.storage.node.field_facebook_link.yml b/modules/mansimran/student_clubs/config/install/field.storage.node.field_facebook_link.yml
new file mode 100755
index 0000000..05130d9
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/field.storage.node.field_facebook_link.yml
@@ -0,0 +1,22 @@
+uuid: 917eb7d1-49da-4380-9a0b-77420dde9291
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - student_clubs
+id: node.field_facebook_link
+field_name: field_facebook_link
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/mansimran/student_clubs/config/install/field.storage.node.field_logo_of_organisation.yml b/modules/mansimran/student_clubs/config/install/field.storage.node.field_logo_of_organisation.yml
new file mode 100755
index 0000000..544b5bf
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/field.storage.node.field_logo_of_organisation.yml
@@ -0,0 +1,33 @@
+uuid: 27f5a0a1-f8e2-42ec-93e1-ee75b849a3ee
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - image
+ - node
+ enforced:
+ module:
+ - student_clubs
+id: node.field_logo_of_organisation
+field_name: field_logo_of_organisation
+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/student_clubs/config/install/field.storage.node.field_organisation_category.yml b/modules/mansimran/student_clubs/config/install/field.storage.node.field_organisation_category.yml
new file mode 100755
index 0000000..3d57205
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/field.storage.node.field_organisation_category.yml
@@ -0,0 +1,23 @@
+uuid: 5baf6269-cae5-4f3f-a820-4793dc32036e
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - taxonomy
+ enforced:
+ module:
+ - student_clubs
+id: node.field_organisation_category
+field_name: field_organisation_category
+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/student_clubs/config/install/migrate_plus.migration.clubs_1.yml b/modules/mansimran/student_clubs/config/install/migrate_plus.migration.clubs_1.yml
new file mode 100644
index 0000000..09e0c21
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/migrate_plus.migration.clubs_1.yml
@@ -0,0 +1,61 @@
+uuid: 9a260262-706e-4344-9798-3c4e4f0ef0c4
+langcode: en
+id: clubs_1
+status: true
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+ - CSV
+migration_group: default
+label: 'clubs_csv_import1'
+source:
+ plugin: csv
+ path: /home/mansimran/Desktop/mansimran1/clubs1.csv
+ delimiter: ','
+ enclosure: '"'
+ header_row_count: 1
+ keys:
+ - id
+ constants:
+ file_source: /var/www/migrationdata/clubs
+ file_dest: 'public://clubs/'
+process:
+ type:
+ plugin: default_value
+ default_value: club_and_chapter
+ source_path:
+ -
+ plugin: skip_on_empty
+ method: process
+ source: logo
+ -
+ plugin: concat
+ delimiter: /
+ source:
+ - constants/file_source
+ - logo
+ title: title
+ body/value: body
+ body/format:
+ plugin: default_value
+ default_value: basic_html
+ field_logo_of_organisation:
+ plugin: file_import
+ source: '@source_path'
+ destination: constants/file_dest
+ field_facebook_link/uri: fb_link
+ field_facebook_link/title:
+ plugin: default_value
+ default_value: 'Fb Link'
+ field_organisation_category:
+ plugin: entity_lookup
+ entity_type: taxonomy_term
+ bundle: category_of_organisation
+ source: organisation_category
+destination:
+ plugin: 'entity:node'
+ bundle: club_and_chapter
+migration_dependencies:
+ required: { }
+ optional: { } \ No newline at end of file
diff --git a/modules/mansimran/student_clubs/config/install/node.type.club_and_chapter.yml b/modules/mansimran/student_clubs/config/install/node.type.club_and_chapter.yml
new file mode 100755
index 0000000..043bbe0
--- /dev/null
+++ b/modules/mansimran/student_clubs/config/install/node.type.club_and_chapter.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - student_clubs
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: 'Student Clubs'
+type: club_and_chapter
+description: 'Clubs in VIT'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: false
diff --git a/modules/mansimran/student_clubs/student_clubs.info.yml b/modules/mansimran/student_clubs/student_clubs.info.yml
new file mode 100755
index 0000000..651ed7d
--- /dev/null
+++ b/modules/mansimran/student_clubs/student_clubs.info.yml
@@ -0,0 +1,16 @@
+name: 'Student Clubs'
+type: module
+description: 'My Awesome Module'
+core: 8.x
+package: 'Custom'
+dependencies:
+ - drupal:node
+ - drupal:menu_ui
+ - drupal:taxonomy
+ - drupal:file
+ - drupal:image
+ - drupal:link
+ - drupal:text
+ - drupal:user
+ - drupal:path
+
diff --git a/modules/mansimran/student_clubs/student_clubs.module b/modules/mansimran/student_clubs/student_clubs.module
new file mode 100755
index 0000000..54b221f
--- /dev/null
+++ b/modules/mansimran/student_clubs/student_clubs.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains student_clubs.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function student_clubs_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the student_clubs module.
+ case 'help.page.student_clubs':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('My Awesome Module') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function student_clubs_theme() {
+ return [
+ 'student_clubs' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/mansimran/student_clubs/templates/student-clubs.html.twig b/modules/mansimran/student_clubs/templates/student-clubs.html.twig
new file mode 100755
index 0000000..91e43c8
--- /dev/null
+++ b/modules/mansimran/student_clubs/templates/student-clubs.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/mansimran/student_clubs/tests/src/Functional/LoadTest.php b/modules/mansimran/student_clubs/tests/src/Functional/LoadTest.php
new file mode 100755
index 0000000..2d4cfeb
--- /dev/null
+++ b/modules/mansimran/student_clubs/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\student_clubs\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group student_clubs
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['student_clubs'];
+
+ /**
+ * 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);
+ }
+
+}
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/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);
+ }
+
+}