summaryrefslogtreecommitdiff
path: root/modules/esha/programs
diff options
context:
space:
mode:
authorNitesh Kumar Sinha2019-08-19 11:14:26 +0530
committerGitHub2019-08-19 11:14:26 +0530
commitf8d43f51937aae5240b2885108fd08efab768155 (patch)
tree998c1d749bf3533d24a4799b53c79413dfce7eba /modules/esha/programs
parent58dbf8fcb04c01c338b9e346b8266690c8b92a2f (diff)
parent67eeae320422623bc2873b2c00afb8b29ec6160e (diff)
downloadacadmix_distribution-master.tar.gz
acadmix_distribution-master.tar.bz2
acadmix_distribution-master.zip
Merge pull request #29 from FOSSEE/stageHEADmaster
merge with Stage
Diffstat (limited to 'modules/esha/programs')
-rw-r--r--modules/esha/programs/composer.json2
-rw-r--r--modules/esha/programs/config/install/views.view.programs_offered_.yml191
-rw-r--r--modules/esha/programs/programs.info.yml2
-rw-r--r--modules/esha/programs/templates/programs.html.twig1
-rw-r--r--modules/esha/programs/tests/src/Functional/LoadTest.php46
5 files changed, 193 insertions, 49 deletions
diff --git a/modules/esha/programs/composer.json b/modules/esha/programs/composer.json
index 9889ab7..c701dcc 100644
--- a/modules/esha/programs/composer.json
+++ b/modules/esha/programs/composer.json
@@ -1,7 +1,7 @@
{
"name": "drupal/programs",
"type": "drupal-module",
- "description": "Module for Content Type Programs Offered",
+ "description": "Module for Content Type programs_offered",
"keywords": ["Drupal"],
"license": "GPL-2.0+",
"homepage": "https://www.drupal.org/project/programs",
diff --git a/modules/esha/programs/config/install/views.view.programs_offered_.yml b/modules/esha/programs/config/install/views.view.programs_offered_.yml
new file mode 100644
index 0000000..0ab632d
--- /dev/null
+++ b/modules/esha/programs/config/install/views.view.programs_offered_.yml
@@ -0,0 +1,191 @@
+langcode: en
+status: true
+dependencies:
+ config:
+ - core.entity_view_mode.node.full
+ - node.type.p
+ module:
+ - node
+ - user
+id: programs_offered_
+label: 'Programs offered'
+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: 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: default
+ row:
+ type: 'entity:node'
+ options:
+ view_mode: full
+ 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:
+ p: p
+ 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: 'Programs offered'
+ 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: programs-offered
+ 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/esha/programs/programs.info.yml b/modules/esha/programs/programs.info.yml
index 284cbaa..850830f 100644
--- a/modules/esha/programs/programs.info.yml
+++ b/modules/esha/programs/programs.info.yml
@@ -1,6 +1,6 @@
name: 'programs'
type: module
-description: 'Module for Content Type Programs Offered'
+description: 'Module for Content Type programs_offered'
core: 8.x
package: 'Custom'
dependencies:
diff --git a/modules/esha/programs/templates/programs.html.twig b/modules/esha/programs/templates/programs.html.twig
deleted file mode 100644
index 91e43c8..0000000
--- a/modules/esha/programs/templates/programs.html.twig
+++ /dev/null
@@ -1 +0,0 @@
-<!-- Add you custom twig html here --> \ No newline at end of file
diff --git a/modules/esha/programs/tests/src/Functional/LoadTest.php b/modules/esha/programs/tests/src/Functional/LoadTest.php
deleted file mode 100644
index 8d3d7ab..0000000
--- a/modules/esha/programs/tests/src/Functional/LoadTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-namespace Drupal\Tests\programs\Functional;
-
-use Drupal\Core\Url;
-use Drupal\Tests\BrowserTestBase;
-
-/**
- * Simple test to ensure that main page loads with module enabled.
- *
- * @group programs
- */
-class LoadTest extends BrowserTestBase {
-
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = ['programs'];
-
- /**
- * 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);
- }
-
-}