summaryrefslogtreecommitdiff
path: root/modules/kalpesh/recruiters
diff options
context:
space:
mode:
Diffstat (limited to 'modules/kalpesh/recruiters')
-rw-r--r--modules/kalpesh/recruiters/composer.json13
-rw-r--r--modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml24
-rw-r--r--modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml20
-rw-r--r--modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml102
-rw-r--r--modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml159
-rw-r--r--modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml33
-rw-r--r--modules/kalpesh/recruiters/config/install/field.field.node.recruiters.body.yml24
-rw-r--r--modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_company_image.yml40
-rw-r--r--modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml25
-rw-r--r--modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml32
-rw-r--r--modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml21
-rw-r--r--modules/kalpesh/recruiters/config/install/image.style.recruiters_image_style_325_325.yml14
-rw-r--r--modules/kalpesh/recruiters/config/install/node.type.recruiters.yml20
-rw-r--r--modules/kalpesh/recruiters/config/install/responsive_image.styles.recruiters_image_style.yml19
-rw-r--r--modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml258
-rw-r--r--modules/kalpesh/recruiters/recruiters.info.yml18
-rw-r--r--modules/kalpesh/recruiters/recruiters.install26
-rw-r--r--modules/kalpesh/recruiters/recruiters.module35
-rw-r--r--modules/kalpesh/recruiters/templates/recruiters.html.twig1
-rw-r--r--modules/kalpesh/recruiters/tests/src/Functional/LoadTest.php46
20 files changed, 930 insertions, 0 deletions
diff --git a/modules/kalpesh/recruiters/composer.json b/modules/kalpesh/recruiters/composer.json
new file mode 100644
index 0000000..4215cbe
--- /dev/null
+++ b/modules/kalpesh/recruiters/composer.json
@@ -0,0 +1,13 @@
+{
+ "name": "recruiters",
+ "type": "drupal-module",
+ "description": "This module store details of companies",
+ "keywords": [
+ ],
+ "homepage": "https://www.drupal.org/project/recruiters",
+ "minimum-stability": "dev",
+ "support": {
+ "issues": "https://www.drupal.org/project/issues/recruiters",
+ "source": "http://cgit.drupalcode.org/recruiters",
+ },
+}
diff --git a/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml
new file mode 100644
index 0000000..cc6df05
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - node.type.recruiters
+ enforced:
+ module:
+ - recruiters
+id: node.recruiters.promote
+field_name: promote
+entity_type: node
+bundle: recruiters
+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/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml
new file mode 100644
index 0000000..7e512d2
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - node.type.recruiters
+ enforced:
+ module:
+ - recruiters
+id: node.recruiters.title
+field_name: title
+entity_type: node
+bundle: recruiters
+label: Recruiters
+description: ''
+required: true
+translatable: true
+default_value: { }
+default_value_callback: ''
+settings: { }
+field_type: string
diff --git a/modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml b/modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml
new file mode 100644
index 0000000..bf89bbc
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml
@@ -0,0 +1,102 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.recruiters.body
+ - field.field.node.recruiters.field_company_image
+ - field.field.node.recruiters.field_link
+ - image.style.thumbnail
+ - node.type.recruiters
+ module:
+ - image
+ - link
+ - path
+ - text
+id: node.recruiters.default
+targetEntityType: node
+bundle: recruiters
+mode: default
+content:
+ body:
+ type: text_textarea_with_summary
+ weight: 10
+ settings:
+ rows: 9
+ summary_rows: 3
+ placeholder: ''
+ third_party_settings: { }
+ region: content
+ created:
+ type: datetime_timestamp
+ weight: 5
+ region: content
+ settings: { }
+ third_party_settings: { }
+ field_company_image:
+ weight: 2
+ settings:
+ progress_indicator: throbber
+ preview_image_style: thumbnail
+ third_party_settings: { }
+ type: image_image
+ region: content
+ field_link:
+ weight: 11
+ settings:
+ placeholder_url: ''
+ placeholder_title: ''
+ third_party_settings: { }
+ type: link_default
+ region: content
+ langcode:
+ type: language_select
+ weight: 3
+ region: content
+ settings:
+ include_locked: true
+ third_party_settings: { }
+ path:
+ type: path
+ weight: 8
+ region: content
+ settings: { }
+ third_party_settings: { }
+ promote:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 6
+ region: content
+ third_party_settings: { }
+ status:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 9
+ region: content
+ third_party_settings: { }
+ sticky:
+ type: boolean_checkbox
+ settings:
+ display_label: true
+ weight: 7
+ region: content
+ third_party_settings: { }
+ title:
+ type: string_textfield
+ weight: 1
+ region: content
+ settings:
+ size: 60
+ placeholder: ''
+ third_party_settings: { }
+ uid:
+ type: entity_reference_autocomplete
+ weight: 4
+ settings:
+ match_operator: CONTAINS
+ size: 60
+ placeholder: ''
+ region: content
+ third_party_settings: { }
+hidden: { } \ No newline at end of file
diff --git a/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml
new file mode 100644
index 0000000..1c37512
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml
@@ -0,0 +1,159 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.field.node.recruiters.body
+ - field.field.node.recruiters.field_company_image
+ - field.field.node.recruiters.field_link
+ - image.style.recruiters_image_style_325_325
+ - node.type.recruiters
+ module:
+ - ds
+ - image
+ - link
+ - text
+ - 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_company_image
+ - body
+ - field_link
+id: node.recruiters.default
+targetEntityType: node
+bundle: recruiters
+mode: default
+content:
+ body:
+ label: hidden
+ type: text_default
+ weight: 3
+ settings: { }
+ third_party_settings:
+ ds:
+ ft:
+ id: expert
+ settings:
+ lb: ''
+ prefix: ''
+ lbw-el: ''
+ lbw-cl: ''
+ lbw-at: ''
+ ow: true
+ ow-el: 'div '
+ ow-cl: 'col-sm-11 '
+ ow-at: ''
+ fis-el: div
+ fis-cl: ''
+ fis-at: ''
+ fi-el: ''
+ fi-cl: ''
+ fi-at: ''
+ suffix: ''
+ lbw: false
+ lb-col: false
+ ow-def-at: false
+ ow-def-cl: false
+ fis: false
+ fis-def-at: false
+ fi: false
+ fi-def-at: false
+ region: ds_content
+ field_company_image:
+ weight: 1
+ label: hidden
+ settings:
+ image_style: recruiters_image_style_325_325
+ image_link: ''
+ third_party_settings:
+ ds:
+ ds_limit: ''
+ ft:
+ id: expert
+ settings:
+ lb: Logo
+ prefix: ''
+ lbw: true
+ lbw-el: div
+ lbw-cl: 'col-sm-2 fw-bold mt-10'
+ lbw-at: ''
+ ow: true
+ ow-el: div
+ ow-cl: mb-10
+ ow-at: ''
+ fis-el: ''
+ fis-cl: ''
+ fis-at: ''
+ fi: true
+ fi-el: div
+ fi-cl: 'col-sm-10 mt-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: image
+ region: ds_content
+ field_link:
+ weight: 5
+ label: inline
+ settings:
+ trim_length: 80
+ url_only: false
+ url_plain: false
+ rel: '0'
+ target: '0'
+ third_party_settings:
+ ds:
+ ds_limit: ''
+ ft:
+ id: expert
+ settings:
+ lb: 'Company official site'
+ prefix: ''
+ lbw: true
+ lbw-el: div
+ lbw-cl: 'col-sm-3 fw-bold mt-10'
+ lbw-at: ''
+ ow: true
+ ow-el: div
+ ow-cl: mt-5
+ ow-at: ''
+ fis-el: ''
+ fis-cl: ''
+ fis-at: ''
+ fi: true
+ fi-el: 'div '
+ fi-cl: 'col-sm-8 mt-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: link
+ region: ds_content
+hidden:
+ langcode: true
+ links: true
diff --git a/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml
new file mode 100644
index 0000000..dc72d45
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml
@@ -0,0 +1,33 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.teaser
+ - field.field.node.recruiters.body
+ - node.type.recruiters
+ module:
+ - text
+ - user
+ enforced:
+ module:
+ - recruiters
+id: node.recruiters.teaser
+targetEntityType: node
+bundle: recruiters
+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/recruiters/config/install/field.field.node.recruiters.body.yml b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.body.yml
new file mode 100644
index 0000000..417841a
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.body.yml
@@ -0,0 +1,24 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.body
+ - node.type.recruiters
+ module:
+ - text
+ enforced:
+ module:
+ - recruiters
+id: node.recruiters.body
+field_name: body
+entity_type: node
+bundle: recruiters
+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/recruiters/config/install/field.field.node.recruiters.field_company_image.yml b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_company_image.yml
new file mode 100644
index 0000000..8f78c2d
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_company_image.yml
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_company_image
+ - node.type.recruiters
+ module:
+ - image
+ enforced:
+ module:
+ - recruiters
+id: node.recruiters.field_company_image
+field_name: field_company_image
+entity_type: node
+bundle: recruiters
+label: 'Company logo'
+description: 'Images of company ,activities'
+required: true
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ file_directory: '[date:custom:Y]-[date:custom:m]'
+ file_extensions: 'png gif jpg jpeg'
+ max_filesize: ''
+ max_resolution: ''
+ min_resolution: ''
+ alt_field: true
+ alt_field_required: 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/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml
new file mode 100644
index 0000000..0d7d550
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml
@@ -0,0 +1,25 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_link
+ - node.type.recruiters
+ module:
+ - link
+ enforced:
+ module:
+ - recruiters
+id: node.recruiters.field_link
+field_name: field_link
+entity_type: node
+bundle: recruiters
+label: Link
+description: 'Link of company'
+required: true
+translatable: false
+default_value: { }
+default_value_callback: ''
+settings:
+ link_type: 17
+ title: 1
+field_type: link
diff --git a/modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml b/modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml
new file mode 100644
index 0000000..81c2f3d
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml
@@ -0,0 +1,32 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - file
+ - image
+ - node
+ enforced:
+ module:
+ - recruiters
+id: node.field_company_image
+field_name: field_company_image
+entity_type: node
+type: image
+settings:
+ uri_scheme: public
+ default_image:
+ uuid: ''
+ alt: ''
+ title: ''
+ width: null
+ height: null
+ target_type: file
+ display_field: false
+ display_default: false
+module: image
+locked: false
+cardinality: -1
+translatable: true
+indexes: { }
+persist_with_no_fields: false
+custom_storage: false
diff --git a/modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml b/modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml
new file mode 100644
index 0000000..85f3875
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml
@@ -0,0 +1,21 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - link
+ - node
+ enforced:
+ module:
+ - recruiters
+id: node.field_link
+field_name: field_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/kalpesh/recruiters/config/install/image.style.recruiters_image_style_325_325.yml b/modules/kalpesh/recruiters/config/install/image.style.recruiters_image_style_325_325.yml
new file mode 100644
index 0000000..da59964
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/image.style.recruiters_image_style_325_325.yml
@@ -0,0 +1,14 @@
+langcode: en
+status: true
+dependencies: { }
+name: recruiters_image_style_325_325
+label: 'Recruiters Image style 325*325'
+effects:
+ 9c2f048c-9992-4c3a-a1f9-c7953b2cf854:
+ uuid: 9c2f048c-9992-4c3a-a1f9-c7953b2cf854
+ id: image_scale
+ weight: 1
+ data:
+ width: 325
+ height: 325
+ upscale: false
diff --git a/modules/kalpesh/recruiters/config/install/node.type.recruiters.yml b/modules/kalpesh/recruiters/config/install/node.type.recruiters.yml
new file mode 100644
index 0000000..edceab8
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/node.type.recruiters.yml
@@ -0,0 +1,20 @@
+langcode: en
+status: true
+dependencies:
+ module:
+ - menu_ui
+ enforced:
+ module:
+ - recruiters
+third_party_settings:
+ menu_ui:
+ available_menus:
+ - main
+ parent: 'main:'
+name: Recruiters
+type: recruiters
+description: 'Companies details which come for placements'
+help: ''
+new_revision: true
+preview_mode: 1
+display_submitted: true
diff --git a/modules/kalpesh/recruiters/config/install/responsive_image.styles.recruiters_image_style.yml b/modules/kalpesh/recruiters/config/install/responsive_image.styles.recruiters_image_style.yml
new file mode 100644
index 0000000..aa5eaf7
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/responsive_image.styles.recruiters_image_style.yml
@@ -0,0 +1,19 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - image.style.max_325x325
+ - image.style.recruiters_image_style_325_325
+id: recruiters_image_style
+label: 'Recruiters Image style'
+image_style_mappings:
+ -
+ breakpoint_id: responsive_image.viewport_sizing
+ multiplier: 1x
+ image_mapping_type: sizes
+ image_mapping:
+ sizes: 100vw
+ sizes_image_styles:
+ - recruiters_image_style_325_325
+breakpoint_group: responsive_image
+fallback_image_style: max_325x325
diff --git a/modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml b/modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml
new file mode 100644
index 0000000..219210e
--- /dev/null
+++ b/modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml
@@ -0,0 +1,258 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - field.storage.node.field_company_image
+ - node.type.recruiters
+ - responsive_image.styles.recruiters_image_style
+ - system.menu.main
+ module:
+ - node
+ - responsive_image
+ - slick_views
+ - user
+id: major_recruiters_
+label: 'Major Recruiters '
+module: views
+description: 'companies which come for placements'
+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: slick
+ options:
+ vanilla: true
+ optionset: default
+ skin: ''
+ layout: ''
+ caption:
+ field_company_image: '0'
+ optionset_thumbnail: ''
+ skin_thumbnail: ''
+ thumbnail_position: ''
+ grid_header: ''
+ grid: 3
+ grid_medium: 3
+ grid_small: 2
+ visible_items: 3
+ preserve_keys: false
+ image: ''
+ thumbnail: ''
+ overlay: ''
+ title: ''
+ link: ''
+ class: ''
+ id: ''
+ override: true
+ overridables:
+ arrows: arrows
+ autoplay: autoplay
+ infinite: infinite
+ dots: '0'
+ draggable: '0'
+ mouseWheel: '0'
+ randomize: '0'
+ variableWidth: '0'
+ cache: 0
+ current_view_mode: page_1
+ thumbnail_effect: hover
+ row:
+ type: fields
+ options:
+ default_field_elements: true
+ inline: { }
+ separator: ''
+ hide_empty: false
+ fields:
+ field_company_image:
+ id: field_company_image
+ table: node__field_company_image
+ field: field_company_image
+ 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: responsive_image
+ settings:
+ responsive_image_style: recruiters_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
+ 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:
+ recruiters: recruiters
+ 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: 'Major Recruiters '
+ 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:
+ - 'config:field.storage.node.field_company_image'
+ page_1:
+ display_plugin: page
+ id: page_1
+ display_title: Page
+ position: 1
+ display_options:
+ display_extenders: { }
+ path: major-recruiters-
+ menu:
+ type: normal
+ title: 'Major Recruiters '
+ menu_name: main
+ weight: -43
+ cache_metadata:
+ max-age: -1
+ contexts:
+ - 'languages:language_content'
+ - 'languages:language_interface'
+ - url.query_args
+ - 'user.node_grants:view'
+ - user.permissions
+ tags:
+ - 'config:field.storage.node.field_company_image'
diff --git a/modules/kalpesh/recruiters/recruiters.info.yml b/modules/kalpesh/recruiters/recruiters.info.yml
new file mode 100644
index 0000000..fa91464
--- /dev/null
+++ b/modules/kalpesh/recruiters/recruiters.info.yml
@@ -0,0 +1,18 @@
+name: Recruiters
+type: module
+description: 'This module store details of companies'
+core: 8.x
+package: Custom
+dependencies:
+ - drupal:menu_ui
+ - drupal:image
+ - drupal:link
+ - drupal:path
+ - drupal:text
+ - ds:ds
+ - drupal:node
+ - drupal:user
+ - drupal:file
+ - slick_views:slick_views
+
+
diff --git a/modules/kalpesh/recruiters/recruiters.install b/modules/kalpesh/recruiters/recruiters.install
new file mode 100644
index 0000000..06b49ac
--- /dev/null
+++ b/modules/kalpesh/recruiters/recruiters.install
@@ -0,0 +1,26 @@
+
+<?php
+/**
+* Implements hook_uninstall().
+*/
+function recruiters_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', 'recruiters');
+ $nids = $query->execute();
+
+
+
+ // Delete entities.
+ if (!empty($nids)) {
+ $entities = $nodeStorage->loadMultiple($nids);
+ $nodeStorage->delete($entities);
+ }
+}
diff --git a/modules/kalpesh/recruiters/recruiters.module b/modules/kalpesh/recruiters/recruiters.module
new file mode 100644
index 0000000..b438440
--- /dev/null
+++ b/modules/kalpesh/recruiters/recruiters.module
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * @file
+ * Contains recruiters.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function recruiters_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the recruiters module.
+ case 'help.page.recruiters':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('This module store details of companies') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function recruiters_theme() {
+ return [
+ 'recruiters' => [
+ 'render element' => 'children',
+ ],
+ ];
+}
diff --git a/modules/kalpesh/recruiters/templates/recruiters.html.twig b/modules/kalpesh/recruiters/templates/recruiters.html.twig
new file mode 100644
index 0000000..95722bd
--- /dev/null
+++ b/modules/kalpesh/recruiters/templates/recruiters.html.twig
@@ -0,0 +1 @@
+<!-- Add you custom twig html here -->
diff --git a/modules/kalpesh/recruiters/tests/src/Functional/LoadTest.php b/modules/kalpesh/recruiters/tests/src/Functional/LoadTest.php
new file mode 100644
index 0000000..9764cfb
--- /dev/null
+++ b/modules/kalpesh/recruiters/tests/src/Functional/LoadTest.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\Tests\recruiters\Functional;
+
+use Drupal\Core\Url;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Simple test to ensure that main page loads with module enabled.
+ *
+ * @group recruiters
+ */
+class LoadTest extends BrowserTestBase {
+
+ /**
+ * Modules to enable.
+ *
+ * @var array
+ */
+ public static $modules = ['recruiters'];
+
+ /**
+ * 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);
+ }
+
+}