diff options
Diffstat (limited to 'modules/esha/sig')
-rw-r--r-- | modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml | 15 | ||||
-rw-r--r-- | modules/esha/sig/config/install/node.type.fac_page.yml | 26 | ||||
-rw-r--r-- | modules/esha/sig/config/install/views.view.sig.yml | 289 | ||||
-rw-r--r-- | modules/esha/sig/sig.info.yml | 1 | ||||
-rw-r--r-- | modules/esha/sig/templates/sig.html.twig | 1 | ||||
-rw-r--r-- | modules/esha/sig/tests/src/Functional/LoadTest.php | 46 |
6 files changed, 290 insertions, 88 deletions
diff --git a/modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index 138bd3c..0000000 --- a/modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - sig -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/sig/config/install/node.type.fac_page.yml b/modules/esha/sig/config/install/node.type.fac_page.yml deleted file mode 100644 index 5fd2e1e..0000000 --- a/modules/esha/sig/config/install/node.type.fac_page.yml +++ /dev/null @@ -1,26 +0,0 @@ -uuid: b7471e78-83f0-4359-9512-d4a8f02c2218 -langcode: en -status: true -dependencies: - enforced: - module: - - acadmix_faculty - module: - - menu_ui - enforced: - module: - - sig -third_party_settings: - menu_ui: - available_menus: - - main - parent: 'main:' -_core: - default_config_hash: yZnGgm-oTEuH3Qz8VcW49f94qFn-pYOYZdrX601an0U -name: 'Faculty Page' -type: fac_page -description: 'Content template for opening Faculty Page' -help: '' -new_revision: true -preview_mode: 1 -display_submitted: false diff --git a/modules/esha/sig/config/install/views.view.sig.yml b/modules/esha/sig/config/install/views.view.sig.yml new file mode 100644 index 0000000..dfcfa11 --- /dev/null +++ b/modules/esha/sig/config/install/views.view.sig.yml @@ -0,0 +1,289 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_faculty_head + - field.storage.node.field_sig_members + - node.type.special_interest_groups + module: + - node + - user +id: sig +label: SIG +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: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + 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: '' + label: Title + 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 + field_faculty_head: + id: field_faculty_head + table: node__field_faculty_head + field: field_faculty_head + relationship: none + group_type: group + admin_label: '' + label: 'Faculty Head' + 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: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + 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 + field_sig_members: + id: field_sig_members + table: node__field_sig_members + field: field_sig_members + plugin_id: field + filters: + status: + id: status + table: node_field_data + field: status + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: boolean + entity_type: node + entity_field: status + type: + id: type + table: node_field_data + field: type + value: + special_interest_groups: special_interest_groups + 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: SIG + 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_faculty_head' + - 'config:field.storage.node.field_sig_members' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: sig + 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_faculty_head' + - 'config:field.storage.node.field_sig_members' diff --git a/modules/esha/sig/sig.info.yml b/modules/esha/sig/sig.info.yml index 94c6b38..386ebed 100644 --- a/modules/esha/sig/sig.info.yml +++ b/modules/esha/sig/sig.info.yml @@ -8,3 +8,4 @@ dependencies: - drupal:node - drupal:user - drupal:menu_ui + - acadmix_faculty:acadmix_faculty
\ No newline at end of file diff --git a/modules/esha/sig/templates/sig.html.twig b/modules/esha/sig/templates/sig.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/sig/templates/sig.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/sig/tests/src/Functional/LoadTest.php b/modules/esha/sig/tests/src/Functional/LoadTest.php deleted file mode 100644 index 8b87e58..0000000 --- a/modules/esha/sig/tests/src/Functional/LoadTest.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php - -namespace Drupal\Tests\sig\Functional; - -use Drupal\Core\Url; -use Drupal\Tests\BrowserTestBase; - -/** - * Simple test to ensure that main page loads with module enabled. - * - * @group sig - */ -class LoadTest extends BrowserTestBase { - - /** - * Modules to enable. - * - * @var array - */ - public static $modules = ['sig']; - - /** - * 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); - } - -} |