summaryrefslogtreecommitdiff
path: root/modules/mansimran/programs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mansimran/programs')
-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
27 files changed, 868 insertions, 0 deletions
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);
+ }
+
+}