Added This Hat's Cases view to config

Also changed case entity paths
This commit is contained in:
naomi 2018-04-12 17:47:45 +02:00
parent b853704700
commit 65efcb21b4
2 changed files with 399 additions and 5 deletions

View File

@ -0,0 +1,394 @@
langcode: en
status: true
dependencies:
module:
- zencrm_entities
id: this_hat_s_cases
label: 'This hat''s cases'
module: views
description: ''
tag: ''
base_table: case_entity_field_data
base_field: id
core: 8.x
display:
default:
display_plugin: default
id: default
display_title: Master
position: 0
display_options:
access:
type: none
options: { }
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: none
options:
offset: 0
style:
type: table
options:
grouping: { }
row_class: ''
default_row_class: true
uses_fields: false
columns: { }
default: ''
info: { }
override: true
sticky: false
order: asc
caption: ''
summary: ''
description: ''
empty_table: false
row:
type: 'entity:case_entity'
fields:
name:
id: name
table: case_entity_field_data
field: name
relationship: none
group_type: group
admin_label: ''
label: Case
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
settings:
link_to_entity: false
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
entity_type: null
entity_field: name
plugin_id: field
type:
id: type
table: case_entity_field_data
field: type
relationship: none
group_type: group
admin_label: ''
label: Type
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: false
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
entity_type: case_entity
entity_field: type
plugin_id: field
hats_involved_target_id:
id: hats_involved_target_id
table: case_entity__hats_involved
field: hats_involved_target_id
relationship: none
group_type: group
admin_label: ''
label: 'Involved Parties'
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: false
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
entity_type: case_entity
entity_field: hats_involved
plugin_id: field
view_case_entity:
id: view_case_entity
table: case_entity
field: view_case_entity
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
text: 'Go to case'
output_url_as_text: false
absolute: false
entity_type: case_entity
plugin_id: entity_link
filters: { }
sorts: { }
title: 'This hat''s cases'
header: { }
footer: { }
empty:
area_text_custom:
id: area_text_custom
table: views
field: area_text_custom
relationship: none
group_type: group
admin_label: ''
empty: true
tokenize: false
content: '<p class=''zencrm_fyi''>This person is not involved in any cases in this capacity.</p>'
plugin_id: text_custom
relationships: { }
arguments:
hats_involved_target_id:
id: hats_involved_target_id
table: case_entity__hats_involved
field: hats_involved_target_id
relationship: none
group_type: group
admin_label: ''
default_action: empty
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
not: false
entity_type: case_entity
entity_field: hats_involved
plugin_id: numeric
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
tags: { }
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'
- url
tags: { }

View File

@ -49,12 +49,12 @@ use Drupal\user\UserInterface;
* "status" = "status", * "status" = "status",
* }, * },
* links = { * links = {
* "canonical" = "/admin/structure/case_entity/{case_entity}", * "canonical" = "/zencrm/case/{case_entity}",
* "add-page" = "/admin/structure/case_entity/add", * "add-page" = "/zencrm/case/add",
* "add-form" = "/zencrm/case/add/{case_entity_type}", * "add-form" = "/zencrm/case/add/{case_entity_type}",
* "edit-form" = "/admin/structure/case_entity/{case_entity}/edit", * "edit-form" = "/zencrm/case/{case_entity}/edit",
* "delete-form" = "/admin/structure/case_entity/{case_entity}/delete", * "delete-form" = "/zencrm/case/{case_entity}/delete",
* "collection" = "/admin/structure/case_entity", * "collection" = "/zencrm/case",
* }, * },
* bundle_entity_type = "case_entity_type", * bundle_entity_type = "case_entity_type",
* field_ui_base_route = "entity.case_entity_type.edit_form" * field_ui_base_route = "entity.case_entity_type.edit_form"