diff options
author | oskkw | 2019-07-03 17:29:48 +0530 |
---|---|---|
committer | oskkw | 2019-07-03 17:29:48 +0530 |
commit | 973ac75b1994043360b8e62cd0c83461310ee728 (patch) | |
tree | 445a92ce631b794ed9f501a1602a144052e29068 /modules/kalpesh/club | |
parent | 58dbf8fcb04c01c338b9e346b8266690c8b92a2f (diff) | |
download | acadmix_distribution-973ac75b1994043360b8e62cd0c83461310ee728.tar.gz acadmix_distribution-973ac75b1994043360b8e62cd0c83461310ee728.tar.bz2 acadmix_distribution-973ac75b1994043360b8e62cd0c83461310ee728.zip |
custom module added
Diffstat (limited to 'modules/kalpesh/club')
26 files changed, 1105 insertions, 0 deletions
diff --git a/modules/kalpesh/club/club.info.yml b/modules/kalpesh/club/club.info.yml new file mode 100644 index 0000000..d7edd94 --- /dev/null +++ b/modules/kalpesh/club/club.info.yml @@ -0,0 +1,13 @@ +name: Club +type: module +description: 'My Awesome Module' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + diff --git a/modules/kalpesh/club/club.install b/modules/kalpesh/club/club.install new file mode 100644 index 0000000..c96c3a0 --- /dev/null +++ b/modules/kalpesh/club/club.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function club_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', 'club'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/club/club.module b/modules/kalpesh/club/club.module new file mode 100644 index 0000000..152525d --- /dev/null +++ b/modules/kalpesh/club/club.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains club.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function club_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the club module. + case 'help.page.club': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('My Awesome Module') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function club_theme() { + return [ + 'club' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/club/composer.json b/modules/kalpesh/club/composer.json new file mode 100644 index 0000000..aa17c3e --- /dev/null +++ b/modules/kalpesh/club/composer.json @@ -0,0 +1,13 @@ +{ + "name": "club", + "type": "drupal-module", + "description": "My Awesome Module", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/club", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/club", + "source": "http://cgit.drupalcode.org/club", + }, +} diff --git a/modules/kalpesh/club/config/install/core.base_field_override.node.club.promote.yml.yml b/modules/kalpesh/club/config/install/core.base_field_override.node.club.promote.yml.yml new file mode 100644 index 0000000..31c7f88 --- /dev/null +++ b/modules/kalpesh/club/config/install/core.base_field_override.node.club.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.club +id: node.club.promote +field_name: promote +entity_type: node +bundle: club +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/club/config/install/core.base_field_override.node.club.title.yml.yml b/modules/kalpesh/club/config/install/core.base_field_override.node.club.title.yml.yml new file mode 100644 index 0000000..1e905ac --- /dev/null +++ b/modules/kalpesh/club/config/install/core.base_field_override.node.club.title.yml.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - node.type.club +id: node.club.title +field_name: title +entity_type: node +bundle: club +label: 'Academic Year' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/core.entity_form_display.node.club.default.yml b/modules/kalpesh/club/config/install/core.entity_form_display.node.club.default.yml new file mode 100644 index 0000000..debfaeb --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_form_display.node.club.default.yml @@ -0,0 +1,126 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.club.body + - field.field.node.club.field_committee_member + - field.field.node.club.field_president + - field.field.node.club.field_secretary + - field.field.node.club.field_treasurer + - field.field.node.club.field_vice_president + - node.type.club + module: + - path + - text +id: node.club.default +targetEntityType: node +bundle: club +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_committee_member: + weight: 126 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_president: + weight: 122 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_secretary: + weight: 124 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_treasurer: + weight: 125 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_vice_president: + weight: 123 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/club/config/install/core.entity_view_display.node.club.default.yml b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.default.yml new file mode 100644 index 0000000..ca57b7e --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.default.yml @@ -0,0 +1,228 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.club.body + - field.field.node.club.field_committee_member + - field.field.node.club.field_president + - field.field.node.club.field_secretary + - field.field.node.club.field_treasurer + - field.field.node.club.field_vice_president + - node.type.club + module: + - ds + - user +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_president + - field_vice_president + - field_secretary + - field_treasurer + - field_committee_member +id: node.club.default +targetEntityType: node +bundle: club +mode: default +content: + field_committee_member: + weight: 106 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: "Committee members\t" + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis: true + fis-el: div + fis-cl: 'col-sm-10 mb-10 mt-10' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_president: + weight: 102 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: President + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: 'div ' + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_secretary: + weight: 104 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: Secretary + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: ' mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_treasurer: + weight: 105 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: Treasurer + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_vice_president: + weight: 103 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Vice president' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content +hidden: + body: true + langcode: true + links: true diff --git a/modules/kalpesh/club/config/install/core.entity_view_display.node.club.teaser.yml b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.teaser.yml new file mode 100644 index 0000000..d581a0c --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.teaser.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.club.body + - node.type.club + module: + - text + - user +id: node.club.teaser +targetEntityType: node +bundle: club +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/club/config/install/core.entity_view_mode.node.teaser.yml b/modules/kalpesh/club/config/install/core.entity_view_mode.node.teaser.yml new file mode 100644 index 0000000..dcde72c --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_view_mode.node.teaser.yml @@ -0,0 +1,9 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.teaser +label: Teaser +targetEntityType: node +cache: true diff --git a/modules/kalpesh/club/config/install/field.field.node.club.body.yml b/modules/kalpesh/club/config/install/field.field.node.club.body.yml new file mode 100644 index 0000000..6d987bc --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.club + module: + - text +id: node.club.body +field_name: body +entity_type: node +bundle: club +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/club/config/install/field.field.node.club.field_committee_member.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_committee_member.yml new file mode 100644 index 0000000..6493e88 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_committee_member.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_committee_member + - node.type.club +id: node.club.field_committee_member +field_name: field_committee_member +entity_type: node +bundle: club +label: 'Committee members' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_president.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_president.yml new file mode 100644 index 0000000..10fbcfc --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_president.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_president + - node.type.club +id: node.club.field_president +field_name: field_president +entity_type: node +bundle: club +label: President +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_secretary.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_secretary.yml new file mode 100644 index 0000000..cfa2fd6 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_secretary.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_secretary + - node.type.club +id: node.club.field_secretary +field_name: field_secretary +entity_type: node +bundle: club +label: Secretary +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_treasurer.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_treasurer.yml new file mode 100644 index 0000000..a83e8d6 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_treasurer.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_treasurer + - node.type.club +id: node.club.field_treasurer +field_name: field_treasurer +entity_type: node +bundle: club +label: Treasurer +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_vice_president.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_vice_president.yml new file mode 100644 index 0000000..58e9697 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_vice_president.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_vice_president + - node.type.club +id: node.club.field_vice_president +field_name: field_vice_president +entity_type: node +bundle: club +label: 'Vice president' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.storage.node.body.yml b/modules/kalpesh/club/config/install/field.storage.node.body.yml new file mode 100644 index 0000000..73edd16 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.body.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node + - text +id: node.body +field_name: body +entity_type: node +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: true +custom_storage: false diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_committee_member.yml b/modules/kalpesh/club/config/install/field.storage.node.field_committee_member.yml new file mode 100644 index 0000000..34d9be6 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_committee_member.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_committee_member +field_name: field_committee_member +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/club/config/install/field.storage.node.field_president.yml b/modules/kalpesh/club/config/install/field.storage.node.field_president.yml new file mode 100644 index 0000000..b87da9b --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_president.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_president +field_name: field_president +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/club/config/install/field.storage.node.field_secretary.yml b/modules/kalpesh/club/config/install/field.storage.node.field_secretary.yml new file mode 100644 index 0000000..768b065 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_secretary.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_secretary +field_name: field_secretary +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/club/config/install/field.storage.node.field_treasurer.yml b/modules/kalpesh/club/config/install/field.storage.node.field_treasurer.yml new file mode 100644 index 0000000..fec69e2 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_treasurer.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_treasurer +field_name: field_treasurer +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/club/config/install/field.storage.node.field_vice_president.yml b/modules/kalpesh/club/config/install/field.storage.node.field_vice_president.yml new file mode 100644 index 0000000..7c6e00d --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_vice_president.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_vice_president +field_name: field_vice_president +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/club/config/install/node.type.club.yml b/modules/kalpesh/club/config/install/node.type.club.yml new file mode 100644 index 0000000..2718f5d --- /dev/null +++ b/modules/kalpesh/club/config/install/node.type.club.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Club +type: club +description: 'Student club committee and the activities arranged by club' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/club/config/install/views.view.club.yml b/modules/kalpesh/club/config/install/views.view.club.yml new file mode 100644 index 0000000..7bcee0e --- /dev/null +++ b/modules/kalpesh/club/config/install/views.view.club.yml @@ -0,0 +1,294 @@ +langcode: en +status: true +dependencies: + config: + - node.type.club + - system.menu.main + module: + - node + - user + - views_bootstrap +id: club +label: Club +module: views +description: 'About club' +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_grid + options: + grouping: { } + row_class: center-block + default_row_class: true + alignment: horizontal + columns: '2' + col_xs: col-xs-6 + col_sm: col-sm-6 + col_md: col-md-6 + col_lg: col-lg-6 + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + nothing: + id: nothing + table: views + field: nothing + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: true + text: '<center><h3> Iteron club core commitee <h3></center>' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: false + plugin_id: custom + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: true + entity_type: node + entity_field: title + plugin_id: field + 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: + club: club + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Iteron Club' + header: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + empty: false + tokenize: false + content: + value: " <blockquote> The department has formed a student’s club named “ITERON” in the academic year 2002-2003. Activities such as seminars, workshops, industrial visits etc. are conducted by the ITERON club for the students. One of the most popular annual event conducted by ITeron club is the Technical Symposium “ITiazza”.\r\nThe student representation for the core team is in the form of President, Secretary, Treasurer and representatives from each class. This gives an opportunity to students to develop leadership and organizational skills. </blockquote>" + format: basic_html + plugin_id: text + 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: club + menu: + type: normal + title: 'Iteron Club' + menu_name: main + description: '' + parent: 'menu_link_content:967e1206-74f4-466a-9ec8-62a46f7ecadb' + weight: -50 + expanded: true + enabled: true + 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/club/templates/club.html.twig b/modules/kalpesh/club/templates/club.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/club/templates/club.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/kalpesh/club/tests/src/Functional/LoadTest.php b/modules/kalpesh/club/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..e1c2530 --- /dev/null +++ b/modules/kalpesh/club/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +<?php + +namespace Drupal\Tests\club\Functional; + +use Drupal\Core\Url; +use Drupal\Tests\BrowserTestBase; + +/** + * Simple test to ensure that main page loads with module enabled. + * + * @group club + */ +class LoadTest extends BrowserTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['club']; + + /** + * 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); + } + +} |