summaryrefslogtreecommitdiff
path: root/modules/bhavika/clubs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bhavika/clubs')
-rw-r--r--modules/bhavika/clubs/clubs.info.yml41
-rw-r--r--modules/bhavika/clubs/clubs.install63
-rw-r--r--modules/bhavika/clubs/clubs.module64
-rw-r--r--modules/bhavika/clubs/clubs.routing.yml8
-rw-r--r--modules/bhavika/clubs/composer.json13
-rw-r--r--modules/bhavika/clubs/config/install/core.entity_form_display.node.clubs.default.yml168
-rw-r--r--modules/bhavika/clubs/config/install/core.entity_view_display.node.clubs.default.yml135
-rw-r--r--modules/bhavika/clubs/config/install/core.entity_view_display.node.clubs.teaser.yml44
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.body.yml24
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.field_activity_type.yml23
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.field_contact_no.yml25
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.field_email.yml21
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.field_external_link.yml25
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.field_facebook_link.yml25
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.field_img.yml40
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.field_instagram_link.yml25
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.field_twitter_link.yml25
-rw-r--r--modules/bhavika/clubs/config/install/field.field.node.clubs.field_youtube_link.yml25
-rw-r--r--modules/bhavika/clubs/config/install/field.storage.node.field_activity_type.yml22
-rw-r--r--modules/bhavika/clubs/config/install/field.storage.node.field_contact_no.yml22
-rw-r--r--modules/bhavika/clubs/config/install/field.storage.node.field_email.yml20
-rw-r--r--modules/bhavika/clubs/config/install/field.storage.node.field_external_link.yml21
-rw-r--r--modules/bhavika/clubs/config/install/field.storage.node.field_facebook_link.yml21
-rw-r--r--modules/bhavika/clubs/config/install/field.storage.node.field_img.yml32
-rw-r--r--modules/bhavika/clubs/config/install/field.storage.node.field_instagram_link.yml21
-rw-r--r--modules/bhavika/clubs/config/install/field.storage.node.field_twitter_link.yml21
-rw-r--r--modules/bhavika/clubs/config/install/field.storage.node.field_youtube_link.yml21
-rw-r--r--modules/bhavika/clubs/config/install/node.type.clubs.yml20
-rw-r--r--modules/bhavika/clubs/config/install/views.view.clubs.yml330
-rw-r--r--modules/bhavika/clubs/src/Controller/ClubsController.php25
-rw-r--r--modules/bhavika/clubs/templates/welcome.html.twig1
-rw-r--r--modules/bhavika/clubs/tests/src/Functional/LoadTest.php46
32 files changed, 1417 insertions, 0 deletions
diff --git a/modules/bhavika/clubs/clubs.info.yml b/modules/bhavika/clubs/clubs.info.yml
new file mode 100644
index 0000000..a705811
--- /dev/null
+++ b/modules/bhavika/clubs/clubs.info.yml
@@ -0,0 +1,41 @@
+name: 'welcome'
+type: module
+description: 'this module shows welcome message to logged in user.'
+core: 8.x
+package: 'Custom'
+# dependencies:
+# config:
+# - field.field.node.clubs.body
+# - field.field.node.clubs.field_activity_type
+# - field.field.node.clubs.field_contact_no
+# - field.field.node.clubs.field_email
+# - field.field.node.clubs.field_external_link
+# - field.field.node.clubs.field_facebook_link
+# - field.field.node.clubs.field_img
+# - field.field.node.clubs.field_instagram_link
+# - field.field.node.clubs.field_twitter_link
+# - field.field.node.clubs.field_youtube_link
+# - image.style.thumbnail
+# - field.storage.node.field_img
+# - node.type.clubs
+# - field.storage.node.body
+# - field.storage.node.field_activity_type
+# - field.storage.node.field_contact_no
+# - field.storage.node.field_email
+# - field.storage.node.field_external_link
+# - field.storage.node.field_facebook_link
+# - field.storage.node.field_instagram_link
+# - field.storage.node.field_twitter_link
+# - field.storage.node.field_youtube_link
+# - core.entity_view_mode.node.teaser
+
+# module:
+# - menu_ui
+# - image
+# - link
+# - path
+# - text
+# - user
+# - node
+# - taxonomy
+# - file
diff --git a/modules/bhavika/clubs/clubs.install b/modules/bhavika/clubs/clubs.install
new file mode 100644
index 0000000..feb3308
--- /dev/null
+++ b/modules/bhavika/clubs/clubs.install
@@ -0,0 +1,63 @@
+<?php
+
+
+/**
+
+
+* Implements hook_uninstall().
+
+
+*/
+
+
+function clubs_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', 'clubs');
+
+
+ $nids = $query->execute();
+
+
+
+
+
+
+
+ // Delete entities.
+
+
+ if (!empty($nids)) {
+
+
+ $entities = $nodeStorage->loadMultiple($nids);
+
+
+ $nodeStorage->delete($entities);
+
+
+ }
+
+
+}
diff --git a/modules/bhavika/clubs/clubs.module b/modules/bhavika/clubs/clubs.module
new file mode 100644
index 0000000..367ac60
--- /dev/null
+++ b/modules/bhavika/clubs/clubs.module
@@ -0,0 +1,64 @@
+<?php
+
+/**
+ * @file
+ * Contains welcome.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function clubs_form_alter(&$form, &$form_state, $form_id){
+ //print_r($form_id);
+ print_r($form['#view']);
+ if($form_id == 'node_page_form')
+ {
+
+ //print_r($form);
+
+ $form['actions']['submit']['#value'] = 'Update';
+ // $show= print_r($form,true);
+ // echo $show;
+ //echo '<pre>';
+
+ //echo '</pre>';
+ // echo '<pre>';
+ // var_dump($form);
+ // echo '</pre>';
+ }
+ if($form_id == 'system_site_information_settings')
+ {
+ // echo '<pre>';
+ // print_r($form);
+ // echo '</pre>';
+ $form['site_information']['site_name']['#default_value'] = 'L.D College Of Engineering';
+ $form['site_information']['site_mail']['#default_value'] = 'ldce-abad-dte@gujarat.gov.in';
+ }
+}
+function clubs_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the welcome module.
+ case 'help.page.clubs':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('this module shows welcome message to logged in user.') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function clubs_theme() {
+ return [
+ 'clubs' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
+
+
diff --git a/modules/bhavika/clubs/clubs.routing.yml b/modules/bhavika/clubs/clubs.routing.yml
new file mode 100644
index 0000000..456e2b6
--- /dev/null
+++ b/modules/bhavika/clubs/clubs.routing.yml
@@ -0,0 +1,8 @@
+
+welcome.welcome_controller_welcome:
+ path: '/welcome'
+ defaults:
+ _controller: '\Drupal\welcome\Controller\WelcomeController::welcome'
+ _title: 'WelcomeController'
+ requirements:
+ _permission: 'access content'
diff --git a/modules/bhavika/clubs/composer.json b/modules/bhavika/clubs/composer.json
new file mode 100644
index 0000000..e544b43
--- /dev/null
+++ b/modules/bhavika/clubs/composer.json
@@ -0,0 +1,13 @@
+{
+ "name": "welcome",
+ "type": "drupal-module",
+ "description": "this module shows welcome message to logged in user.",
+ "keywords": [
+ ],
+ "homepage": "https://www.drupal.org/project/welcome",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/welcome",
+ "source": "http://cgit.drupalcode.org/welcome",
+ },
+}
diff --git a/modules/bhavika/clubs/config/install/core.entity_form_display.node.clubs.default.yml b/modules/bhavika/clubs/config/install/core.entity_form_display.node.clubs.default.yml
new file mode 100644
index 0000000..5be3099
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/core.entity_form_display.node.clubs.default.yml
@@ -0,0 +1,168 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.clubs.body
+ - field.field.node.clubs.field_activity_type
+ - field.field.node.clubs.field_contact_no
+ - field.field.node.clubs.field_email
+ - field.field.node.clubs.field_external_link
+ - field.field.node.clubs.field_facebook_link
+ - field.field.node.clubs.field_img
+ - field.field.node.clubs.field_instagram_link
+ - field.field.node.clubs.field_twitter_link
+ - field.field.node.clubs.field_youtube_link
+ - image.style.thumbnail
+ - node.type.clubs
+ module:
+ - image
+ - link
+ - path
+ - text
+ enforced:
+ module:
+ - clubs
+id: node.clubs.default
+targetEntityType: node
+bundle: clubs
+mode: default
+content:
+ body:
+ type: text_textarea_with_summary
+ weight: 9
+ settings:
+ rows: 9
+ summary_rows: 3
+ placeholder: ''
+ third_party_settings: { }
+ region: content
+ created:
+ type: datetime_timestamp
+ weight: 3
+ region: content
+ settings: { }
+ third_party_settings: { }
+ field_activity_type:
+ weight: 33
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ type: entity_reference_autocomplete
+ region: content
+ field_contact_no:
+ weight: 27
+ settings:
+ placeholder: ''
+ third_party_settings: { }
+ type: number
+ region: content
+ field_email:
+ weight: 26
+ settings:
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ type: email_default
+ region: content
+ field_external_link:
+ weight: 32
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_facebook_link:
+ weight: 28
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_img:
+ weight: 8
+ settings:
+ progress_indicator: throbber
+ preview_image_style: thumbnail
+ third_party_settings: { }
+ type: image_image
+ region: content
+ field_instagram_link:
+ weight: 30
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_twitter_link:
+ weight: 29
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ field_youtube_link:
+ weight: 31
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ langcode:
+ type: language_select
+ weight: 1
+ region: content
+ settings:
+ include_locked: true
+ third_party_settings: { }
+ path:
+ type: path
+ weight: 6
+ region: content
+ settings: { }
+ third_party_settings: { }
+ promote:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 4
+ region: content
+ third_party_settings: { }
+ status:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 7
+ region: content
+ third_party_settings: { }
+ sticky:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 5
+ region: content
+ third_party_settings: { }
+ title:
+ type: string_textfield
+ weight: 0
+ region: content
+ settings:
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ uid:
+ type: entity_reference_autocomplete
+ weight: 2
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ region: content
+ third_party_settings: { }
+hidden: { }
diff --git a/modules/bhavika/clubs/config/install/core.entity_view_display.node.clubs.default.yml b/modules/bhavika/clubs/config/install/core.entity_view_display.node.clubs.default.yml
new file mode 100644
index 0000000..25694e4
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/core.entity_view_display.node.clubs.default.yml
@@ -0,0 +1,135 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.clubs.body
+ - field.field.node.clubs.field_activity_type
+ - field.field.node.clubs.field_contact_no
+ - field.field.node.clubs.field_email
+ - field.field.node.clubs.field_external_link
+ - field.field.node.clubs.field_facebook_link
+ - field.field.node.clubs.field_img
+ - field.field.node.clubs.field_instagram_link
+ - field.field.node.clubs.field_twitter_link
+ - field.field.node.clubs.field_youtube_link
+ - node.type.clubs
+ module:
+ - image
+ - link
+ - text
+ - user
+ enforced:
+ module:
+ - clubs
+id: node.clubs.default
+targetEntityType: node
+bundle: clubs
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 2
+ settings: { }
+ third_party_settings: { }
+ region: content
+ field_activity_type:
+ weight: 10
+ label: above
+ settings:
+ link: true
+ third_party_settings: { }
+ type: entity_reference_label
+ region: content
+ field_contact_no:
+ weight: 4
+ label: above
+ settings:
+ thousand_separator: ''
+ prefix_suffix: true
+ third_party_settings: { }
+ type: number_integer
+ region: content
+ field_email:
+ weight: 3
+ label: above
+ settings: { }
+ third_party_settings: { }
+ type: basic_string
+ region: content
+ field_external_link:
+ weight: 9
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_facebook_link:
+ weight: 5
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_img:
+ weight: 1
+ label: hidden
+ settings:
+ image_style: ''
+ image_link: ''
+ third_party_settings: { }
+ type: image
+ region: content
+ field_instagram_link:
+ weight: 7
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_twitter_link:
+ weight: 6
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ field_youtube_link:
+ weight: 8
+ label: above
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: ''
+ target: ''
+ third_party_settings: { }
+ type: link
+ region: content
+ links:
+ weight: 0
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ langcode: true
diff --git a/modules/bhavika/clubs/config/install/core.entity_view_display.node.clubs.teaser.yml b/modules/bhavika/clubs/config/install/core.entity_view_display.node.clubs.teaser.yml
new file mode 100644
index 0000000..5590af0
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/core.entity_view_display.node.clubs.teaser.yml
@@ -0,0 +1,44 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.clubs.body
+ - field.field.node.clubs.field_img
+ - node.type.clubs
+ module:
+ - image
+ - text
+ - user
+ enforced:
+ module:
+ - clubs
+id: node.clubs.teaser
+targetEntityType: node
+bundle: clubs
+mode: teaser
+content:
+ body:
+ label: hidden
+ type: text_summary_or_trimmed
+ weight: 2
+ settings:
+ trim_length: 600
+ third_party_settings: { }
+ region: content
+ field_img:
+ type: image
+ weight: 1
+ region: content
+ label: hidden
+ settings:
+ image_style: ''
+ image_link: ''
+ third_party_settings: { }
+ links:
+ weight: 0
+ region: content
+ settings: { }
+ third_party_settings: { }
+hidden:
+ langcode: true
diff --git a/modules/bhavika/clubs/config/install/field.field.node.clubs.body.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.body.yml
new file mode 100644
index 0000000..2cb335e
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.clubs
+ module:
+ - text
+ enforced:
+ module:
+ - clubs
+id: node.clubs.body
+field_name: body
+entity_type: node
+bundle: clubs
+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/bhavika/clubs/config/install/field.field.node.clubs.field_activity_type.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_activity_type.yml
new file mode 100644
index 0000000..d020e2e
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_activity_type.yml
@@ -0,0 +1,23 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_activity_type
+ - node.type.clubs
+ enforced:
+ module:
+ - clubs
+id: node.clubs.field_activity_type
+field_name: field_activity_type
+entity_type: node
+bundle: clubs
+label: activity_type
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ handler: 'default:taxonomy_term'
+ handler_settings: { }
+field_type: entity_reference
diff --git a/modules/bhavika/clubs/config/install/field.field.node.clubs.field_contact_no.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_contact_no.yml
new file mode 100644
index 0000000..75c1a61
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_contact_no.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_contact_no
+ - node.type.clubs
+ enforced:
+ module:
+ - clubs
+id: node.clubs.field_contact_no
+field_name: field_contact_no
+entity_type: node
+bundle: clubs
+label: contact_no
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ min: null
+ max: null
+ prefix: ''
+ suffix: ''
+field_type: integer
diff --git a/modules/bhavika/clubs/config/install/field.field.node.clubs.field_email.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_email.yml
new file mode 100644
index 0000000..8f2ac5b
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_email.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_email
+ - node.type.clubs
+ enforced:
+ module:
+ - clubs
+id: node.clubs.field_email
+field_name: field_email
+entity_type: node
+bundle: clubs
+label: email
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: email
diff --git a/modules/bhavika/clubs/config/install/field.field.node.clubs.field_external_link.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_external_link.yml
new file mode 100644
index 0000000..d3f123b
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_external_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_external_link
+ - node.type.clubs
+ module:
+ - link
+ enforced:
+ module:
+ - clubs
+id: node.clubs.field_external_link
+field_name: field_external_link
+entity_type: node
+bundle: clubs
+label: external_link
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/bhavika/clubs/config/install/field.field.node.clubs.field_facebook_link.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_facebook_link.yml
new file mode 100644
index 0000000..7f1c33a
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_facebook_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_facebook_link
+ - node.type.clubs
+ module:
+ - link
+ enforced:
+ module:
+ - clubs
+id: node.clubs.field_facebook_link
+field_name: field_facebook_link
+entity_type: node
+bundle: clubs
+label: facebook_link
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/bhavika/clubs/config/install/field.field.node.clubs.field_img.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_img.yml
new file mode 100644
index 0000000..2454692
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_img.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_img
+ - node.type.clubs
+ module:
+ - image
+ enforced:
+ module:
+ - clubs
+id: node.clubs.field_img
+field_name: field_img
+entity_type: node
+bundle: clubs
+label: img
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: clubs
+ file_extensions: 'png gif jpg jpeg'
+ max_filesize: ''
+ max_resolution: ''
+ min_resolution: ''
+ alt_field: true
+ alt_field_required: true
+ title_field: false
+ title_field_required: false
+ default_image:
+ uuid: ''
+ alt: ''
+ title: ''
+ width: null
+ height: null
+ handler: 'default:file'
+ handler_settings: { }
+field_type: image
diff --git a/modules/bhavika/clubs/config/install/field.field.node.clubs.field_instagram_link.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_instagram_link.yml
new file mode 100644
index 0000000..fc0f87b
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_instagram_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_instagram_link
+ - node.type.clubs
+ module:
+ - link
+ enforced:
+ module:
+ - clubs
+id: node.clubs.field_instagram_link
+field_name: field_instagram_link
+entity_type: node
+bundle: clubs
+label: instagram_link
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/bhavika/clubs/config/install/field.field.node.clubs.field_twitter_link.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_twitter_link.yml
new file mode 100644
index 0000000..ba25bc9
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_twitter_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_twitter_link
+ - node.type.clubs
+ module:
+ - link
+ enforced:
+ module:
+ - clubs
+id: node.clubs.field_twitter_link
+field_name: field_twitter_link
+entity_type: node
+bundle: clubs
+label: twitter_link
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/bhavika/clubs/config/install/field.field.node.clubs.field_youtube_link.yml b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_youtube_link.yml
new file mode 100644
index 0000000..6f4d83f
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.field.node.clubs.field_youtube_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_youtube_link
+ - node.type.clubs
+ module:
+ - link
+ enforced:
+ module:
+ - clubs
+id: node.clubs.field_youtube_link
+field_name: field_youtube_link
+entity_type: node
+bundle: clubs
+label: youtube_link
+description: ''
+required: false
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/bhavika/clubs/config/install/field.storage.node.field_activity_type.yml b/modules/bhavika/clubs/config/install/field.storage.node.field_activity_type.yml
new file mode 100644
index 0000000..cc17935
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.storage.node.field_activity_type.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ - taxonomy
+ enforced:
+ module:
+ - clubs
+id: node.field_activity_type
+field_name: field_activity_type
+entity_type: node
+type: entity_reference
+settings:
+ target_type: taxonomy_term
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/bhavika/clubs/config/install/field.storage.node.field_contact_no.yml b/modules/bhavika/clubs/config/install/field.storage.node.field_contact_no.yml
new file mode 100644
index 0000000..9457294
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.storage.node.field_contact_no.yml
@@ -0,0 +1,22 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ enforced:
+ module:
+ - clubs
+id: node.field_contact_no
+field_name: field_contact_no
+entity_type: node
+type: integer
+settings:
+ unsigned: false
+ size: normal
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/bhavika/clubs/config/install/field.storage.node.field_email.yml b/modules/bhavika/clubs/config/install/field.storage.node.field_email.yml
new file mode 100644
index 0000000..fb0167a
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.storage.node.field_email.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - node
+ enforced:
+ module:
+ - clubs
+id: node.field_email
+field_name: field_email
+entity_type: node
+type: email
+settings: { }
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/bhavika/clubs/config/install/field.storage.node.field_external_link.yml b/modules/bhavika/clubs/config/install/field.storage.node.field_external_link.yml
new file mode 100644
index 0000000..52ac0c9
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.storage.node.field_external_link.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - clubs
+id: node.field_external_link
+field_name: field_external_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/bhavika/clubs/config/install/field.storage.node.field_facebook_link.yml b/modules/bhavika/clubs/config/install/field.storage.node.field_facebook_link.yml
new file mode 100644
index 0000000..59a4da6
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.storage.node.field_facebook_link.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - clubs
+id: node.field_facebook_link
+field_name: field_facebook_link
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/bhavika/clubs/config/install/field.storage.node.field_img.yml b/modules/bhavika/clubs/config/install/field.storage.node.field_img.yml
new file mode 100644
index 0000000..d63730f
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.storage.node.field_img.yml
@@ -0,0 +1,32 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - image
+ - node
+ enforced:
+ module:
+ - clubs
+id: node.field_img
+field_name: field_img
+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/bhavika/clubs/config/install/field.storage.node.field_instagram_link.yml b/modules/bhavika/clubs/config/install/field.storage.node.field_instagram_link.yml
new file mode 100644
index 0000000..eef7c10
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.storage.node.field_instagram_link.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - clubs
+id: node.field_instagram_link
+field_name: field_instagram_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/bhavika/clubs/config/install/field.storage.node.field_twitter_link.yml b/modules/bhavika/clubs/config/install/field.storage.node.field_twitter_link.yml
new file mode 100644
index 0000000..659af76
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.storage.node.field_twitter_link.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - clubs
+id: node.field_twitter_link
+field_name: field_twitter_link
+entity_type: node
+type: link
+settings: { }
+module: link
+locked: false
+cardinality: 1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/bhavika/clubs/config/install/field.storage.node.field_youtube_link.yml b/modules/bhavika/clubs/config/install/field.storage.node.field_youtube_link.yml
new file mode 100644
index 0000000..d6eebc4
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/field.storage.node.field_youtube_link.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - clubs
+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/bhavika/clubs/config/install/node.type.clubs.yml b/modules/bhavika/clubs/config/install/node.type.clubs.yml
new file mode 100644
index 0000000..e2907ba
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/node.type.clubs.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - clubs
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: Clubs
+type: clubs
+description: 'Different Clubs and sports clubs Of L.D.C.E'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: true
diff --git a/modules/bhavika/clubs/config/install/views.view.clubs.yml b/modules/bhavika/clubs/config/install/views.view.clubs.yml
new file mode 100644
index 0000000..e35c549
--- /dev/null
+++ b/modules/bhavika/clubs/config/install/views.view.clubs.yml
@@ -0,0 +1,330 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - field.storage.node.field_img
+ - node.type.clubs
+ module:
+ - image
+ - node
+ - text
+ - user
+ enforced:
+ module:
+ - clubs
+id: clubs
+label: clubs
+module: views
+description: ''
+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: some
+ options:
+ items_per_page: 3
+ offset: 0
+ style:
+ type: default
+ row:
+ type: fields
+ fields:
+ title:
+ id: title
+ table: node_field_data
+ field: title
+ settings:
+ link_to_entity: true
+ plugin_id: field
+ 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: 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: true
+ 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
+ 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
+ field_img:
+ id: field_img
+ table: node__field_img
+ field: field_img
+ 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: 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: true
+ click_sort_column: target_id
+ type: image
+ settings:
+ image_style: ''
+ image_link: content
+ group_column: ''
+ 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
+ plugin_id: field
+ body:
+ id: body
+ table: node__body
+ field: body
+ 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: 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: true
+ click_sort_column: value
+ type: text_default
+ settings: { }
+ 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
+ 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:
+ clubs: clubs
+ 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: clubs
+ header: { }
+ footer: { }
+ empty: { }
+ relationships: { }
+ arguments: { }
+ display_extenders: { }
+ use_more: true
+ use_more_always: true
+ use_more_text: more
+ link_url: /clubs-page
+ link_display: custom_url
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - 'user.node_grants:view'
+ - user.permissions
+ tags:
+ - 'config:field.storage.node.body'
+ - 'config:field.storage.node.field_img'
+ block_1:
+ display_plugin: block
+ id: block_1
+ display_title: Block
+ position: 1
+ display_options:
+ display_extenders: { }
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - 'user.node_grants:view'
+ - user.permissions
+ tags:
+ - 'config:field.storage.node.body'
+ - 'config:field.storage.node.field_img'
diff --git a/modules/bhavika/clubs/src/Controller/ClubsController.php b/modules/bhavika/clubs/src/Controller/ClubsController.php
new file mode 100644
index 0000000..c4c6f5a
--- /dev/null
+++ b/modules/bhavika/clubs/src/Controller/ClubsController.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\welcome\Controller;
+
+use Drupal\Core\Controller\ControllerBase;
+
+/**
+ * Class WelcomeController.
+ */
+class ClubsController extends ControllerBase {
+
+ /**
+ * Welcome.
+ *
+ * @return string
+ * Return Hello string.
+ */
+ public function clubs() {
+ return [
+ '#type' => 'markup',
+ '#markup' => $this->t('Implement method: welcome')
+ ];
+ }
+
+}
diff --git a/modules/bhavika/clubs/templates/welcome.html.twig b/modules/bhavika/clubs/templates/welcome.html.twig
new file mode 100644
index 0000000..95722bd
--- /dev/null
+++ b/modules/bhavika/clubs/templates/welcome.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here -->
diff --git a/modules/bhavika/clubs/tests/src/Functional/LoadTest.php b/modules/bhavika/clubs/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..caa6ac0
--- /dev/null
+++ b/modules/bhavika/clubs/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\welcome\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group welcome
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['welcome'];
+
+ /**
+ * 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);
+ }
+
+}