From 13bcf012d5531117a3330d5682c93d772554fe26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kl=C3=ADma?= Date: Sat, 9 Feb 2019 18:17:14 +0100 Subject: [PATCH] Issue #279: Basic profile configuration --- ...lay.profile.company_membership.default.yml | 22 + ...ay.profile.personal_membership.default.yml | 21 + ...lay.profile.company_membership.default.yml | 21 + ...ay.profile.personal_membership.default.yml | 21 + ...ompany_membership.field_company_member.yml | 28 ++ ...ile.personal_membership.field_fullname.yml | 19 + ...d.storage.profile.field_company_member.yml | 20 + .../field.storage.profile.field_fullname.yml | 21 + .../system.action.profile_delete_action.yml | 1 + .../system.action.profile_publish_action.yml | 1 + ...system.action.profile_unpublish_action.yml | 1 + .../language/en/views.view.profiles.yml | 27 ++ .../profile.type.company_membership.yml | 16 + .../profile.type.personal_membership.yml | 16 + .../system.action.profile_delete_action.yml | 13 + .../system.action.profile_publish_action.yml | 13 + ...system.action.profile_unpublish_action.yml | 13 + config/default/views.view.profiles.yml | 384 ++++++++++++++++++ 18 files changed, 658 insertions(+) create mode 100644 config/default/core.entity_form_display.profile.company_membership.default.yml create mode 100644 config/default/core.entity_form_display.profile.personal_membership.default.yml create mode 100644 config/default/core.entity_view_display.profile.company_membership.default.yml create mode 100644 config/default/core.entity_view_display.profile.personal_membership.default.yml create mode 100644 config/default/field.field.profile.company_membership.field_company_member.yml create mode 100644 config/default/field.field.profile.personal_membership.field_fullname.yml create mode 100644 config/default/field.storage.profile.field_company_member.yml create mode 100644 config/default/field.storage.profile.field_fullname.yml create mode 100644 config/default/language/en/system.action.profile_delete_action.yml create mode 100644 config/default/language/en/system.action.profile_publish_action.yml create mode 100644 config/default/language/en/system.action.profile_unpublish_action.yml create mode 100644 config/default/language/en/views.view.profiles.yml create mode 100644 config/default/profile.type.company_membership.yml create mode 100644 config/default/profile.type.personal_membership.yml create mode 100644 config/default/system.action.profile_delete_action.yml create mode 100644 config/default/system.action.profile_publish_action.yml create mode 100644 config/default/system.action.profile_unpublish_action.yml create mode 100644 config/default/views.view.profiles.yml diff --git a/config/default/core.entity_form_display.profile.company_membership.default.yml b/config/default/core.entity_form_display.profile.company_membership.default.yml new file mode 100644 index 000000000..42f593b74 --- /dev/null +++ b/config/default/core.entity_form_display.profile.company_membership.default.yml @@ -0,0 +1,22 @@ +uuid: 31f3d27e-1137-4b59-8373-33e305e2341b +langcode: en +status: true +dependencies: + config: + - field.field.profile.company_membership.field_company_member + - profile.type.company_membership +id: profile.company_membership.default +targetEntityType: profile +bundle: company_membership +mode: default +content: + field_company_member: + weight: 0 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content +hidden: { } diff --git a/config/default/core.entity_form_display.profile.personal_membership.default.yml b/config/default/core.entity_form_display.profile.personal_membership.default.yml new file mode 100644 index 000000000..e5ffe7940 --- /dev/null +++ b/config/default/core.entity_form_display.profile.personal_membership.default.yml @@ -0,0 +1,21 @@ +uuid: a837f677-cba1-42df-9cc2-3542f890babe +langcode: en +status: true +dependencies: + config: + - field.field.profile.personal_membership.field_fullname + - profile.type.personal_membership +id: profile.personal_membership.default +targetEntityType: profile +bundle: personal_membership +mode: default +content: + field_fullname: + weight: 0 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content +hidden: { } diff --git a/config/default/core.entity_view_display.profile.company_membership.default.yml b/config/default/core.entity_view_display.profile.company_membership.default.yml new file mode 100644 index 000000000..b5709a75f --- /dev/null +++ b/config/default/core.entity_view_display.profile.company_membership.default.yml @@ -0,0 +1,21 @@ +uuid: 68666641-38b3-4788-9c6a-1320762c039e +langcode: en +status: true +dependencies: + config: + - field.field.profile.company_membership.field_company_member + - profile.type.company_membership +id: profile.company_membership.default +targetEntityType: profile +bundle: company_membership +mode: default +content: + field_company_member: + weight: 0 + label: above + settings: + link: true + third_party_settings: { } + type: entity_reference_label + region: content +hidden: { } diff --git a/config/default/core.entity_view_display.profile.personal_membership.default.yml b/config/default/core.entity_view_display.profile.personal_membership.default.yml new file mode 100644 index 000000000..9ab7ccc74 --- /dev/null +++ b/config/default/core.entity_view_display.profile.personal_membership.default.yml @@ -0,0 +1,21 @@ +uuid: dffe0fc3-4907-46d0-8c7d-8e59e8b93445 +langcode: en +status: true +dependencies: + config: + - field.field.profile.personal_membership.field_fullname + - profile.type.personal_membership +id: profile.personal_membership.default +targetEntityType: profile +bundle: personal_membership +mode: default +content: + field_fullname: + weight: 0 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content +hidden: { } diff --git a/config/default/field.field.profile.company_membership.field_company_member.yml b/config/default/field.field.profile.company_membership.field_company_member.yml new file mode 100644 index 000000000..fa522ebc6 --- /dev/null +++ b/config/default/field.field.profile.company_membership.field_company_member.yml @@ -0,0 +1,28 @@ +uuid: e80fe8a9-80d2-4780-a6ec-db2fa137a98e +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_company_member + - profile.type.company_membership +id: profile.company_membership.field_company_member +field_name: field_company_member +entity_type: profile +bundle: company_membership +label: 'Company member' +description: 'Kdo patří do této firmy?' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:user' + handler_settings: + include_anonymous: false + filter: + type: _none + target_bundles: null + sort: + field: _none + auto_create: false +field_type: entity_reference diff --git a/config/default/field.field.profile.personal_membership.field_fullname.yml b/config/default/field.field.profile.personal_membership.field_fullname.yml new file mode 100644 index 000000000..44ccad4e1 --- /dev/null +++ b/config/default/field.field.profile.personal_membership.field_fullname.yml @@ -0,0 +1,19 @@ +uuid: 4272309f-8287-49cc-964a-a84edaccfd9a +langcode: en +status: true +dependencies: + config: + - field.storage.profile.field_fullname + - profile.type.personal_membership +id: profile.personal_membership.field_fullname +field_name: field_fullname +entity_type: profile +bundle: personal_membership +label: Fullname +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/default/field.storage.profile.field_company_member.yml b/config/default/field.storage.profile.field_company_member.yml new file mode 100644 index 000000000..dffec66fd --- /dev/null +++ b/config/default/field.storage.profile.field_company_member.yml @@ -0,0 +1,20 @@ +uuid: a23a3328-33c7-4ba0-aff1-ad2f74a510ea +langcode: en +status: true +dependencies: + module: + - profile + - user +id: profile.field_company_member +field_name: field_company_member +entity_type: profile +type: entity_reference +settings: + target_type: user +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/default/field.storage.profile.field_fullname.yml b/config/default/field.storage.profile.field_fullname.yml new file mode 100644 index 000000000..0f491adec --- /dev/null +++ b/config/default/field.storage.profile.field_fullname.yml @@ -0,0 +1,21 @@ +uuid: 39b05045-bd47-4445-9936-6545504ea06f +langcode: en +status: true +dependencies: + module: + - profile +id: profile.field_fullname +field_name: field_fullname +entity_type: profile +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/default/language/en/system.action.profile_delete_action.yml b/config/default/language/en/system.action.profile_delete_action.yml new file mode 100644 index 000000000..d881871cb --- /dev/null +++ b/config/default/language/en/system.action.profile_delete_action.yml @@ -0,0 +1 @@ +label: 'Delete selected profile' diff --git a/config/default/language/en/system.action.profile_publish_action.yml b/config/default/language/en/system.action.profile_publish_action.yml new file mode 100644 index 000000000..0ea64f5ac --- /dev/null +++ b/config/default/language/en/system.action.profile_publish_action.yml @@ -0,0 +1 @@ +label: 'Publish selected profile' diff --git a/config/default/language/en/system.action.profile_unpublish_action.yml b/config/default/language/en/system.action.profile_unpublish_action.yml new file mode 100644 index 000000000..a362dd880 --- /dev/null +++ b/config/default/language/en/system.action.profile_unpublish_action.yml @@ -0,0 +1 @@ +label: 'Unpublish selected profile' diff --git a/config/default/language/en/views.view.profiles.yml b/config/default/language/en/views.view.profiles.yml new file mode 100644 index 000000000..65ba434ec --- /dev/null +++ b/config/default/language/en/views.view.profiles.yml @@ -0,0 +1,27 @@ +label: Profiles +display: + default: + display_title: Master + display_options: + exposed_form: + options: + submit_button: Apply + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + sort_asc_label: Asc + sort_desc_label: Desc + arguments: + uid: + exception: + title: All + type: + exception: + title: All + status: + exception: + title: All + title: Profiles + profile_type_listing: + display_title: 'Profile type listing' + user_view: + display_title: 'User view' diff --git a/config/default/profile.type.company_membership.yml b/config/default/profile.type.company_membership.yml new file mode 100644 index 000000000..6b0616f23 --- /dev/null +++ b/config/default/profile.type.company_membership.yml @@ -0,0 +1,16 @@ +uuid: 2ac102e1-3f2c-4ed4-a734-21f341920d87 +langcode: en +status: true +dependencies: { } +id: company_membership +label: 'Company membership' +registration: false +multiple: true +roles: + authenticated: authenticated + contributor: '0' + editor: '0' + administrator: '0' +weight: 0 +use_revisions: false +description: '' diff --git a/config/default/profile.type.personal_membership.yml b/config/default/profile.type.personal_membership.yml new file mode 100644 index 000000000..4f7931f4d --- /dev/null +++ b/config/default/profile.type.personal_membership.yml @@ -0,0 +1,16 @@ +uuid: c46e9960-fbfa-474d-8646-e6304f7e94c6 +langcode: en +status: true +dependencies: { } +id: personal_membership +label: 'Personal membership' +registration: false +multiple: false +roles: + authenticated: authenticated + contributor: '0' + editor: '0' + administrator: '0' +weight: 0 +use_revisions: false +description: '' diff --git a/config/default/system.action.profile_delete_action.yml b/config/default/system.action.profile_delete_action.yml new file mode 100644 index 000000000..d2d35206c --- /dev/null +++ b/config/default/system.action.profile_delete_action.yml @@ -0,0 +1,13 @@ +uuid: 5689aced-8caf-4e55-81d0-519f6c3c555f +langcode: cs +status: true +dependencies: + module: + - profile +_core: + default_config_hash: 7iaCHiR7rJnpuIcqcYxtZ6OFm7HnFfjZJdE1s-8K4RM +id: profile_delete_action +label: 'Delete selected profile' +type: profile +plugin: profile_delete_action +configuration: { } diff --git a/config/default/system.action.profile_publish_action.yml b/config/default/system.action.profile_publish_action.yml new file mode 100644 index 000000000..f1f92d79b --- /dev/null +++ b/config/default/system.action.profile_publish_action.yml @@ -0,0 +1,13 @@ +uuid: 0aa4f171-d8b9-4deb-abdc-fec0c3a79fb8 +langcode: cs +status: true +dependencies: + module: + - profile +_core: + default_config_hash: dz5_l09fj1m6b4MZVYlHjYHsXSlG9aQHGGoupPb8phg +id: profile_publish_action +label: 'Publish selected profile' +type: profile +plugin: profile_publish_action +configuration: { } diff --git a/config/default/system.action.profile_unpublish_action.yml b/config/default/system.action.profile_unpublish_action.yml new file mode 100644 index 000000000..c4724aaad --- /dev/null +++ b/config/default/system.action.profile_unpublish_action.yml @@ -0,0 +1,13 @@ +uuid: f17ded1f-eaab-4098-8461-2b89ef7c82a8 +langcode: cs +status: true +dependencies: + module: + - profile +_core: + default_config_hash: QWiXic0BIuoYYgvkiSTxsCsPPi7k1mYuHOTIAPhoT4Q +id: profile_unpublish_action +label: 'Unpublish selected profile' +type: profile +plugin: profile_unpublish_action +configuration: { } diff --git a/config/default/views.view.profiles.yml b/config/default/views.view.profiles.yml new file mode 100644 index 000000000..9d7074ecf --- /dev/null +++ b/config/default/views.view.profiles.yml @@ -0,0 +1,384 @@ +uuid: e3874fa2-f4ea-4215-aad8-49d65a1be16b +langcode: cs +status: true +dependencies: + module: + - profile +_core: + default_config_hash: YD0hw-cg1_R36IQ1hO2vQlrhYAQqM7kF6mw3hFGrwI8 +id: profiles +label: Profiles +module: views +description: '' +tag: '' +base_table: profile +base_field: profile_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: grid + options: + grouping: { } + columns: 4 + automatic_width: true + alignment: horizontal + col_class_default: true + col_class_custom: '' + row_class_default: true + row_class_custom: '' + row: + type: fields + options: + inline: { } + separator: '' + hide_empty: false + default_field_elements: true + fields: + rendered_entity: + id: rendered_entity + table: profile + field: rendered_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 + view_mode: default + entity_type: profile + plugin_id: rendered_entity + operations: + id: operations + table: profile + field: operations + 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 + destination: true + entity_type: profile + plugin_id: entity_operations + filters: { } + sorts: { } + header: { } + footer: { } + empty: { } + relationships: { } + arguments: + uid: + id: uid + table: profile + field: uid + relationship: none + group_type: group + admin_label: '' + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: user + default_argument_options: + user: false + 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: profile + entity_field: uid + plugin_id: numeric + type: + id: type + table: profile + field: type + relationship: none + group_type: group + admin_label: '' + default_action: ignore + 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: true + validate: + type: 'entity:profile_type' + fail: 'not found' + validate_options: { } + glossary: false + limit: 0 + case: none + path_case: none + transform_dash: false + break_phrase: false + entity_type: profile + entity_field: type + plugin_id: string + status: + id: status + table: profile + field: status + relationship: none + group_type: group + admin_label: '' + default_action: ignore + 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: profile + entity_field: status + plugin_id: numeric + display_extenders: { } + title: Profiles + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + tags: { } + profile_type_listing: + display_plugin: embed + id: profile_type_listing + display_title: 'Profile type listing' + position: 1 + display_options: + display_extenders: { } + display_description: '' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + tags: { } + user_view: + display_plugin: embed + id: user_view + display_title: 'User view' + position: 2 + display_options: + display_extenders: { } + fields: + rendered_entity: + id: rendered_entity + table: profile + field: rendered_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 + view_mode: default + entity_type: profile + plugin_id: rendered_entity + defaults: + fields: false + display_description: '' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - url + tags: { }