summaryrefslogtreecommitdiff
path: root/modules/kalpesh/achivements
diff options
context:
space:
mode:
Diffstat (limited to 'modules/kalpesh/achivements')
-rw-r--r--modules/kalpesh/achivements/achivements.info.yml16
-rw-r--r--modules/kalpesh/achivements/achivements.install26
-rw-r--r--modules/kalpesh/achivements/achivements.module35
-rw-r--r--modules/kalpesh/achivements/composer.json13
-rw-r--r--modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml24
-rw-r--r--modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml20
-rw-r--r--modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml113
-rw-r--r--modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml167
-rw-r--r--modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml33
-rw-r--r--modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml24
-rw-r--r--modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml21
-rw-r--r--modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml29
-rw-r--r--modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml40
-rw-r--r--modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml23
-rw-r--r--modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml25
-rw-r--r--modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml32
-rw-r--r--modules/kalpesh/achivements/config/install/image.style.achievament_image_style.yml17
-rw-r--r--modules/kalpesh/achivements/config/install/node.type.achivements.yml20
-rw-r--r--modules/kalpesh/achivements/config/install/views.view.achivements.yml211
-rw-r--r--modules/kalpesh/achivements/templates/achivements.html.twig1
-rw-r--r--modules/kalpesh/achivements/tests/src/Functional/LoadTest.php46
21 files changed, 936 insertions, 0 deletions
diff --git a/modules/kalpesh/achivements/achivements.info.yml b/modules/kalpesh/achivements/achivements.info.yml
new file mode 100644
index 0000000..39762be
--- /dev/null
+++ b/modules/kalpesh/achivements/achivements.info.yml
@@ -0,0 +1,16 @@
+name: Achivements
+type: module
+description: 'This module store student achivements'
+core: 8.x
+package: Custom
+dependencies:
+ - drupal:menu_ui
+ - drupal:file
+ - drupal:image
+ - drupal:path
+ - drupal:text
+ - ds:ds
+ - drupal:user
+ - drupal:node
+
+
diff --git a/modules/kalpesh/achivements/achivements.install b/modules/kalpesh/achivements/achivements.install
new file mode 100644
index 0000000..9ea9eb6
--- /dev/null
+++ b/modules/kalpesh/achivements/achivements.install
@@ -0,0 +1,26 @@
+
+<?php
+/**
+* Implements hook_uninstall().
+*/
+function achivements_uninstall() { //<-- replace “welcome” with your module machine name
+ // Load services.
+ $queryFactory = \Drupal::service('entity.query');
+ $nodeStorage = \Drupal::entityManager()->getStorage('node');
+
+
+
+ // Query all entity.
+ $query = $queryFactory->get('node')
+// <-- replace event in below line with your content type machine name
+ ->condition('type', 'achivements');
+ $nids = $query->execute();
+
+
+
+ // Delete entities.
+ if (!empty($nids)) {
+ $entities = $nodeStorage->loadMultiple($nids);
+ $nodeStorage->delete($entities);
+ }
+}
diff --git a/modules/kalpesh/achivements/achivements.module b/modules/kalpesh/achivements/achivements.module
new file mode 100644
index 0000000..0a48707
--- /dev/null
+++ b/modules/kalpesh/achivements/achivements.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains achivements.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function achivements_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the achivements module.
+ case 'help.page.achivements':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('This module store student achivements') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function achivements_theme() {
+ return [
+ 'achivements' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/kalpesh/achivements/composer.json b/modules/kalpesh/achivements/composer.json
new file mode 100644
index 0000000..dc44524
--- /dev/null
+++ b/modules/kalpesh/achivements/composer.json
@@ -0,0 +1,13 @@
+{
+ "name": "achivements",
+ "type": "drupal-module",
+ "description": "This module store student achivements",
+ "keywords": [
+ ],
+ "homepage": "https://www.drupal.org/project/achivements",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/achivements",
+ "source": "http://cgit.drupalcode.org/achivements",
+ },
+}
diff --git a/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml
new file mode 100644
index 0000000..6e1888f
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - node.type.achivements
+ enforced:
+ module:
+ - achivements
+id: node.achivements.promote
+field_name: promote
+entity_type: node
+bundle: achivements
+label: 'Promoted to front page'
+description: ''
+required: false
+translatable: true
+default_value:
+ -
+ value: 0
+default_value_callback: ''
+settings:
+ on_label: 'On'
+ off_label: 'Off'
+field_type: boolean
diff --git a/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml
new file mode 100644
index 0000000..4f4a69b
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - node.type.achivements
+ enforced:
+ module:
+ - achivements
+id: node.achivements.title
+field_name: title
+entity_type: node
+bundle: achivements
+label: Title
+description: ''
+required: true
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: string
diff --git a/modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml b/modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml
new file mode 100644
index 0000000..40a3a03
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml
@@ -0,0 +1,113 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.achivements.body
+ - field.field.node.achivements.field_acadmic_year
+ - field.field.node.achivements.field_achivement_files
+ - field.field.node.achivements.field_achivement_image
+ - image.style.thumbnail
+ - node.type.achivements
+ module:
+ - file
+ - image
+ - path
+ - text
+ enforced:
+ module:
+ - achivements
+id: node.achivements.default
+targetEntityType: node
+bundle: achivements
+mode: default
+content:
+ body:
+ type: text_textarea_with_summary
+ weight: 10
+ settings:
+ rows: 9
+ summary_rows: 3
+ placeholder: ''
+ third_party_settings: { }
+ region: content
+ created:
+ type: datetime_timestamp
+ weight: 5
+ region: content
+ settings: { }
+ third_party_settings: { }
+ field_acadmic_year:
+ weight: 0
+ settings:
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ type: string_textfield
+ region: content
+ field_achivement_files:
+ weight: 27
+ settings:
+ progress_indicator: throbber
+ third_party_settings: { }
+ type: file_generic
+ region: content
+ field_achivement_image:
+ weight: 26
+ settings:
+ progress_indicator: throbber
+ preview_image_style: thumbnail
+ third_party_settings: { }
+ type: image_image
+ region: content
+ langcode:
+ type: language_select
+ weight: 3
+ region: content
+ settings:
+ include_locked: true
+ third_party_settings: { }
+ path:
+ type: path
+ weight: 8
+ region: content
+ settings: { }
+ third_party_settings: { }
+ promote:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 6
+ region: content
+ third_party_settings: { }
+ status:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 9
+ region: content
+ third_party_settings: { }
+ sticky:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 7
+ region: content
+ third_party_settings: { }
+ title:
+ type: string_textfield
+ weight: 1
+ region: content
+ settings:
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ uid:
+ type: entity_reference_autocomplete
+ weight: 4
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ region: content
+ third_party_settings: { }
+hidden: { }
diff --git a/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml
new file mode 100644
index 0000000..934d88f
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml
@@ -0,0 +1,167 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.achivements.body
+ - field.field.node.achivements.field_acadmic_year
+ - field.field.node.achivements.field_achivement_files
+ - field.field.node.achivements.field_achivement_image
+ - image.style.achievament_image_style
+ - node.type.achivements
+ module:
+ - ds
+ - file
+ - image
+ - text
+ - user
+ enforced:
+ module:
+ - achivements
+third_party_settings:
+ ds:
+ layout:
+ id: ds_1col
+ library: null
+ disable_css: false
+ entity_classes: all_classes
+ settings:
+ wrappers:
+ ds_content: div
+ outer_wrapper: div
+ attributes: ''
+ link_attribute: ''
+ link_custom: ''
+ classes:
+ layout_class: { }
+ ds_content: { }
+ regions:
+ ds_content:
+ - field_acadmic_year
+ - body
+ - field_achivement_image
+ - field_achivement_files
+id: node.achivements.default
+targetEntityType: node
+bundle: achivements
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 102
+ settings: { }
+ third_party_settings:
+ ds:
+ ft:
+ id: expert
+ settings:
+ lb: ''
+ prefix: ''
+ lbw-el: 'div '
+ lbw-cl: col-10
+ lbw-at: ''
+ ow: true
+ ow-el: div
+ ow-cl: ' mt-20 col-sm-12'
+ ow-at: ''
+ fis-el: ''
+ fis-cl: ''
+ fis-at: ''
+ fi-el: ''
+ fi-cl: ''
+ fi-at: ''
+ suffix: ''
+ lbw: false
+ lb-col: false
+ ow-def-at: false
+ ow-def-cl: false
+ fis: false
+ fis-def-at: false
+ fi: false
+ fi-def-at: false
+ region: ds_content
+ field_acadmic_year:
+ weight: 101
+ label: above
+ settings:
+ link_to_entity: false
+ third_party_settings:
+ ds:
+ ft:
+ id: expert
+ settings:
+ lb: 'Acadmic year'
+ prefix: ''
+ lbw: true
+ lbw-el: div
+ lbw-cl: 'col-sm-2 fw-bold '
+ lbw-at: ''
+ ow: true
+ ow-el: div
+ ow-cl: 'mt-20 mb-10'
+ ow-at: ''
+ fis-el: ''
+ fis-cl: ''
+ fis-at: ''
+ fi: true
+ fi-el: div
+ fi-cl: col-sm-10
+ fi-at: ''
+ suffix: ''
+ lb-col: false
+ ow-def-at: false
+ ow-def-cl: false
+ fis: false
+ fis-def-at: false
+ fi-def-at: false
+ type: string
+ region: ds_content
+ field_achivement_files:
+ weight: 104
+ label: above
+ settings:
+ use_description_as_link_text: true
+ third_party_settings: { }
+ type: file_default
+ region: ds_content
+ field_achivement_image:
+ weight: 103
+ label: above
+ settings:
+ image_style: achievament_image_style
+ image_link: ''
+ third_party_settings:
+ ds:
+ ds_limit: ''
+ ft:
+ id: expert
+ settings:
+ lb: ''
+ prefix: ''
+ lbw-el: ''
+ lbw-cl: ''
+ lbw-at: ''
+ ow: true
+ ow-el: div
+ ow-cl: 'row col-sm-4'
+ ow-at: ''
+ fis: true
+ fis-el: div
+ fis-cl: 'col-sm-4 center-block'
+ fis-at: ''
+ fi: true
+ fi-el: div
+ fi-cl: 'col-sm-4 center-block'
+ fi-at: ''
+ suffix: ''
+ lbw: false
+ lb-col: false
+ ow-def-at: false
+ ow-def-cl: false
+ fis-def-at: false
+ fi-def-at: false
+ type: image
+ region: ds_content
+hidden:
+ langcode: true
+ links: true
diff --git a/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml
new file mode 100644
index 0000000..ffca321
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml
@@ -0,0 +1,33 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.achivements.body
+ - node.type.achivements
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - achivements
+id: node.achivements.teaser
+targetEntityType: node
+bundle: achivements
+mode: teaser
+content:
+ body:
+ label: hidden
+ type: text_summary_or_trimmed
+ weight: 101
+ settings:
+ trim_length: 600
+ third_party_settings: { }
+ region: content
+ links:
+ weight: 100
+ settings: { }
+ third_party_settings: { }
+ region: content
+hidden:
+ langcode: true
diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml
new file mode 100644
index 0000000..929a58c
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.achivements
+ module:
+ - text
+ enforced:
+ module:
+ - achivements
+id: node.achivements.body
+field_name: body
+entity_type: node
+bundle: achivements
+label: Body
+description: ''
+required: false
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings:
+ display_summary: true
+field_type: text_with_summary
diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml
new file mode 100644
index 0000000..86f1b99
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_acadmic_year
+ - node.type.achivements
+ enforced:
+ module:
+ - achivements
+id: node.achivements.field_acadmic_year
+field_name: field_acadmic_year
+entity_type: node
+bundle: achivements
+label: 'Acadmic year'
+description: 'ex 2019-2020'
+required: true
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: string
diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml
new file mode 100644
index 0000000..4788849
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml
@@ -0,0 +1,29 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_achivement_files
+ - node.type.achivements
+ module:
+ - file
+ enforced:
+ module:
+ - achivements
+id: node.achivements.field_achivement_files
+field_name: field_achivement_files
+entity_type: node
+bundle: achivements
+label: Files
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: '[date:custom:Y]-[date:custom:m]'
+ file_extensions: 'txt pdf'
+ max_filesize: ''
+ description_field: false
+ handler: 'default:file'
+ handler_settings: { }
+field_type: file
diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml
new file mode 100644
index 0000000..7203373
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_achivement_image
+ - node.type.achivements
+ module:
+ - image
+ enforced:
+ module:
+ - achivements
+id: node.achivements.field_achivement_image
+field_name: field_achivement_image
+entity_type: node
+bundle: achivements
+label: Image
+description: ''
+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: false
+ title_field: false
+ title_field_required: false
+ default_image:
+ uuid: ''
+ alt: ''
+ title: ''
+ width: null
+ height: null
+ handler: 'default:file'
+ handler_settings: { }
+field_type: image
diff --git a/modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml b/modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml
new file mode 100644
index 0000000..b1c9b8d
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ enforced:
+ module:
+ - achivements
+id: node.field_acadmic_year
+field_name: field_acadmic_year
+entity_type: node
+type: string
+settings:
+ max_length: 255
+ is_ascii: false
+ case_sensitive: false
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml
new file mode 100644
index 0000000..c5366eb
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - node
+ enforced:
+ module:
+ - achivements
+id: node.field_achivement_files
+field_name: field_achivement_files
+entity_type: node
+type: file
+settings:
+ display_field: false
+ display_default: false
+ uri_scheme: public
+ target_type: file
+module: file
+locked: false
+cardinality: -1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml
new file mode 100644
index 0000000..5b33c7d
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml
@@ -0,0 +1,32 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - image
+ - node
+ enforced:
+ module:
+ - achivements
+id: node.field_achivement_image
+field_name: field_achivement_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/kalpesh/achivements/config/install/image.style.achievament_image_style.yml b/modules/kalpesh/achivements/config/install/image.style.achievament_image_style.yml
new file mode 100644
index 0000000..af08183
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/image.style.achievament_image_style.yml
@@ -0,0 +1,17 @@
+langcode: en
+status: true
+dependencies:
+ enforced:
+ module:
+ - achivements
+name: achievament_image_style
+label: 'Achievament image style'
+effects:
+ a350664a-521a-4ffd-be52-84328a7e9a62:
+ uuid: a350664a-521a-4ffd-be52-84328a7e9a62
+ id: image_scale_and_crop
+ weight: 1
+ data:
+ width: 400
+ height: 300
+ anchor: center-center
diff --git a/modules/kalpesh/achivements/config/install/node.type.achivements.yml b/modules/kalpesh/achivements/config/install/node.type.achivements.yml
new file mode 100644
index 0000000..ae3b842
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/node.type.achivements.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - achivements
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: Achivements
+type: achivements
+description: 'Achivements details of department'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: true
diff --git a/modules/kalpesh/achivements/config/install/views.view.achivements.yml b/modules/kalpesh/achivements/config/install/views.view.achivements.yml
new file mode 100644
index 0000000..c9b9b5e
--- /dev/null
+++ b/modules/kalpesh/achivements/config/install/views.view.achivements.yml
@@ -0,0 +1,211 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - node.type.achivements
+ - system.menu.main
+ module:
+ - node
+ - user
+ - views_bootstrap
+ enforced:
+ module:
+ - achivements
+id: achivements
+label: Achivements
+module: views
+description: 'students Achivements'
+tag: ''
+base_table: node_field_data
+base_field: nid
+core: 8.x
+display:
+ default:
+ display_plugin: default
+ id: default
+ display_title: Master
+ position: 0
+ display_options:
+ access:
+ type: perm
+ options:
+ perm: 'access content'
+ cache:
+ type: tag
+ options: { }
+ query:
+ type: views_query
+ options:
+ disable_sql_rewrite: false
+ distinct: false
+ replica: false
+ query_comment: ''
+ query_tags: { }
+ exposed_form:
+ type: basic
+ options:
+ submit_button: Apply
+ reset_button: false
+ reset_button_label: Reset
+ exposed_sorts_label: 'Sort by'
+ expose_sort_order: true
+ sort_asc_label: Asc
+ sort_desc_label: Desc
+ pager:
+ type: mini
+ options:
+ items_per_page: 10
+ offset: 0
+ id: 0
+ total_pages: null
+ expose:
+ items_per_page: false
+ items_per_page_label: 'Items per page'
+ items_per_page_options: '5, 10, 25, 50'
+ items_per_page_options_all: false
+ items_per_page_options_all_label: '- All -'
+ offset: false
+ offset_label: Offset
+ tags:
+ previous: ‹‹
+ next: ››
+ style:
+ type: views_bootstrap_list_group
+ options:
+ grouping: { }
+ row_class: centar
+ default_row_class: true
+ title_field: ''
+ row:
+ type: fields
+ options:
+ default_field_elements: true
+ inline:
+ title: title
+ field_acadmic_year: field_acadmic_year
+ separator: ''
+ hide_empty: false
+ fields:
+ title:
+ id: title
+ table: node_field_data
+ field: title
+ entity_type: node
+ entity_field: title
+ label: ''
+ alter:
+ alter_text: false
+ make_link: false
+ absolute: false
+ trim: false
+ word_boundary: false
+ ellipsis: false
+ strip_tags: false
+ html: false
+ hide_empty: false
+ empty_zero: false
+ settings:
+ link_to_entity: true
+ plugin_id: field
+ relationship: none
+ group_type: group
+ admin_label: ''
+ exclude: false
+ element_type: ''
+ element_class: ''
+ element_label_type: ''
+ element_label_class: ''
+ element_label_colon: true
+ element_wrapper_type: ''
+ element_wrapper_class: ''
+ element_default_classes: true
+ empty: ''
+ hide_alter_empty: true
+ click_sort_column: value
+ type: string
+ group_column: value
+ group_columns: { }
+ group_rows: true
+ delta_limit: 0
+ delta_offset: 0
+ delta_reversed: false
+ delta_first_last: false
+ multi_type: separator
+ separator: ', '
+ field_api_classes: false
+ filters:
+ status:
+ value: '1'
+ table: node_field_data
+ field: status
+ plugin_id: boolean
+ entity_type: node
+ entity_field: status
+ id: status
+ expose:
+ operator: ''
+ group: 1
+ type:
+ id: type
+ table: node_field_data
+ field: type
+ value:
+ achivements: achivements
+ entity_type: node
+ entity_field: type
+ plugin_id: bundle
+ sorts:
+ field_acadmic_year_value:
+ id: field_acadmic_year_value
+ table: node__field_acadmic_year
+ field: field_acadmic_year_value
+ relationship: none
+ group_type: group
+ admin_label: ''
+ order: DESC
+ exposed: false
+ expose:
+ label: ''
+ plugin_id: standard
+ title: Achivements
+ header: { }
+ footer: { }
+ empty: { }
+ relationships: { }
+ arguments: { }
+ display_extenders: { }
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - url.query_args
+ - 'user.node_grants:view'
+ - user.permissions
+ tags: { }
+ page_1:
+ display_plugin: page
+ id: page_1
+ display_title: Page
+ position: 1
+ display_options:
+ display_extenders: { }
+ path: achivements
+ menu:
+ type: normal
+ title: Achivements
+ description: ''
+ expanded: false
+ parent: ''
+ weight: -46
+ context: '0'
+ menu_name: main
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - url.query_args
+ - 'user.node_grants:view'
+ - user.permissions
+ tags: { }
diff --git a/modules/kalpesh/achivements/templates/achivements.html.twig b/modules/kalpesh/achivements/templates/achivements.html.twig
new file mode 100644
index 0000000..95722bd
--- /dev/null
+++ b/modules/kalpesh/achivements/templates/achivements.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here -->
diff --git a/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php b/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..e50c1f8
--- /dev/null
+++ b/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\achivements\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group achivements
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['achivements'];
+
+ /**
+ * 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);
+ }
+
+}