Add work site settings and company and role fields

References: #13
This commit is contained in:
Oliver Davies 2021-06-11 00:26:17 +01:00
parent 893474a90e
commit 64b961d852
7 changed files with 208 additions and 0 deletions

View file

@ -0,0 +1,58 @@
uuid: 4e3e5be7-9cd3-45bb-b387-8c0f53b9bdd5
langcode: en
status: true
dependencies:
config:
- field.field.site_setting_entity.work.field_company
- field.field.site_setting_entity.work.field_role
- site_settings.site_setting_entity_type.work
module:
- link
id: site_setting_entity.work.default
targetEntityType: site_setting_entity
bundle: work
mode: default
content:
field_company:
weight: 11
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
type: link_default
region: content
field_role:
weight: 12
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
fieldset:
type: string_textfield
weight: -4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
name:
type: string_textfield
weight: -4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
user_id:
type: entity_reference_autocomplete
weight: 5
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
hidden: { }

View file

@ -0,0 +1,60 @@
uuid: 2a31bd5e-6e1b-4ff9-a0e2-283b4c0b4c91
langcode: en
status: true
dependencies:
config:
- field.field.site_setting_entity.work.field_company
- field.field.site_setting_entity.work.field_role
- site_settings.site_setting_entity_type.work
module:
- link
- user
id: site_setting_entity.work.default
targetEntityType: site_setting_entity
bundle: work
mode: default
content:
field_company:
weight: 1
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
type: link
region: content
field_role:
weight: 2
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
fieldset:
label: above
type: string
weight: -4
region: content
settings:
link_to_entity: false
third_party_settings: { }
name:
label: above
type: string
weight: -4
region: content
settings:
link_to_entity: false
third_party_settings: { }
user_id:
label: hidden
type: author
weight: 0
region: content
settings: { }
third_party_settings: { }
hidden: { }

View file

@ -0,0 +1,23 @@
uuid: 8590141d-a401-4684-80ca-392832f52fb7
langcode: en
status: true
dependencies:
config:
- field.storage.site_setting_entity.field_company
- site_settings.site_setting_entity_type.work
module:
- link
id: site_setting_entity.work.field_company
field_name: field_company
entity_type: site_setting_entity
bundle: work
label: Company
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
link_type: 16
title: 2
field_type: link

View file

@ -0,0 +1,19 @@
uuid: 3551b1da-adcb-433d-8212-43059c5d10c9
langcode: en
status: true
dependencies:
config:
- field.storage.site_setting_entity.field_role
- site_settings.site_setting_entity_type.work
id: site_setting_entity.work.field_role
field_name: field_role
entity_type: site_setting_entity
bundle: work
label: Role
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View file

@ -0,0 +1,19 @@
uuid: 9ad03cfc-ad59-4eee-890e-55cdb8d7d390
langcode: en
status: true
dependencies:
module:
- link
- site_settings
id: site_setting_entity.field_company
field_name: field_company
entity_type: site_setting_entity
type: link
settings: { }
module: link
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View file

@ -0,0 +1,21 @@
uuid: f49be2c9-eef0-461d-8749-3cd573dd7c35
langcode: en
status: true
dependencies:
module:
- site_settings
id: site_setting_entity.field_role
field_name: field_role
entity_type: site_setting_entity
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

View file

@ -0,0 +1,8 @@
uuid: 377a5aa4-765e-4a82-ba9f-e6bd0e763c59
langcode: en
status: true
dependencies: { }
id: work
label: Work
fieldset: Work
multiple: false