summaryrefslogtreecommitdiff
path: root/modules/mansimran/sae_teams
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mansimran/sae_teams')
-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/config/install/views.view.sae_teams.yml210
-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
21 files changed, 870 insertions, 0 deletions
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/config/install/views.view.sae_teams.yml b/modules/mansimran/sae_teams/config/install/views.view.sae_teams.yml
new file mode 100644
index 0000000..6feb0f5
--- /dev/null
+++ b/modules/mansimran/sae_teams/config/install/views.view.sae_teams.yml
@@ -0,0 +1,210 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - node.type.sae_teams_
+ module:
+ - ds
+ - node
+ - user
+ enforced:
+ module:
+ - sae_teams
+id: sae_teams
+label: 'sae teams'
+module: views
+description: 'Description about SAE teams'
+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: 4
+ offset: 0
+ id: 0
+ total_pages: null
+ expose:
+ items_per_page: false
+ items_per_page_label: 'Items per page'
+ items_per_page_options: '5, 10, 25, 50'
+ items_per_page_options_all: false
+ items_per_page_options_all_label: '- All -'
+ offset: false
+ offset_label: Offset
+ tags:
+ previous: ‹‹
+ next: ››
+ style:
+ type: default
+ row:
+ type: 'ds_entity:node'
+ options:
+ relationship: none
+ view_mode: teaser
+ alternating_fieldset:
+ alternating: false
+ allpages: false
+ item_0: teaser
+ item_1: teaser
+ item_2: teaser
+ item_3: teaser
+ grouping_fieldset:
+ group: false
+ group_field: node_field_data|created
+ group_field_function: ''
+ advanced_fieldset:
+ advanced: 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:
+ sae_teams_: sae_teams_
+ 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: 'SAE Teams'
+ 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: sae-teams
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - url.query_args
+ - 'user.node_grants:view'
+ - user.permissions
+ tags: { }
+
diff --git a/modules/mansimran/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);
+ }
+
+}