Skip to content

Commit

Permalink
Issue #279: Copy fields from Organization CT into Company profile
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-klima committed Feb 9, 2019
1 parent 13bcf01 commit b9f86fe
Show file tree
Hide file tree
Showing 11 changed files with 250 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,45 @@ langcode: en
status: true
dependencies:
config:
- field.field.profile.company_membership.field_company_about
- field.field.profile.company_membership.field_company_email
- field.field.profile.company_membership.field_company_logo
- field.field.profile.company_membership.field_company_member
- field.field.profile.company_membership.field_company_website
- profile.type.company_membership
module:
- link
- text
id: profile.company_membership.default
targetEntityType: profile
bundle: company_membership
mode: default
content:
field_company_about:
weight: 2
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: text_textarea
region: content
field_company_email:
weight: 5
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: email_default
region: content
field_company_logo:
weight: 4
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_company_member:
weight: 0
settings:
Expand All @@ -19,4 +51,12 @@ content:
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_company_website:
weight: 3
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
type: link_default
region: content
hidden: { }
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,43 @@ langcode: en
status: true
dependencies:
config:
- field.field.profile.company_membership.field_company_about
- field.field.profile.company_membership.field_company_email
- field.field.profile.company_membership.field_company_logo
- field.field.profile.company_membership.field_company_member
- field.field.profile.company_membership.field_company_website
- profile.type.company_membership
module:
- link
- text
id: profile.company_membership.default
targetEntityType: profile
bundle: company_membership
mode: default
content:
field_company_about:
weight: 2
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
field_company_email:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
field_company_logo:
type: entity_reference_entity_view
weight: 4
label: above
settings:
view_mode: default
link: false
third_party_settings: { }
region: content
field_company_member:
weight: 0
label: above
Expand All @@ -18,4 +48,16 @@ content:
third_party_settings: { }
type: entity_reference_label
region: content
field_company_website:
weight: 3
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
type: link
region: content
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 2f2493c8-914b-4fec-ae80-ff568a644535
langcode: en
status: true
dependencies:
config:
- field.storage.profile.field_company_about
- profile.type.company_membership
module:
- text
id: profile.company_membership.field_company_about
field_name: field_company_about
entity_type: profile
bundle: company_membership
label: 'O organizaci'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: fcd662cb-3b57-40f0-afb5-5f4091413a2d
langcode: en
status: true
dependencies:
config:
- field.storage.profile.field_company_email
- profile.type.company_membership
id: profile.company_membership.field_company_email
field_name: field_company_email
entity_type: profile
bundle: company_membership
label: E-mail
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: email
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
uuid: feabe3ed-f3ab-41ad-ade1-391e9199a75d
langcode: en
status: true
dependencies:
config:
- field.storage.profile.field_company_logo
- media.type.image
- profile.type.company_membership
id: profile.company_membership.field_company_logo
field_name: field_company_logo
entity_type: profile
bundle: company_membership
label: Logo
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
image: image
sort:
field: _none
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ id: profile.company_membership.field_company_member
field_name: field_company_member
entity_type: profile
bundle: company_membership
label: 'Company member'
label: 'Naši lidé'
description: 'Kdo patří do této firmy?'
required: false
translatable: false
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 53066b43-39ab-4a33-b7cc-9dc777db42e9
langcode: en
status: true
dependencies:
config:
- field.storage.profile.field_company_website
- profile.type.company_membership
module:
- link
id: profile.company_membership.field_company_website
field_name: field_company_website
entity_type: profile
bundle: company_membership
label: 'Webové stránky'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
link_type: 16
title: 1
field_type: link
19 changes: 19 additions & 0 deletions config/default/field.storage.profile.field_company_about.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 813f254c-f08f-44f5-aa7d-fa9549ec7ede
langcode: en
status: true
dependencies:
module:
- profile
- text
id: profile.field_company_about
field_name: field_company_about
entity_type: profile
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
18 changes: 18 additions & 0 deletions config/default/field.storage.profile.field_company_email.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uuid: 29754522-f823-4768-a116-41c16175e114
langcode: en
status: true
dependencies:
module:
- profile
id: profile.field_company_email
field_name: field_company_email
entity_type: profile
type: email
settings: { }
module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
20 changes: 20 additions & 0 deletions config/default/field.storage.profile.field_company_logo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 0e36c770-0fd7-4e93-b1d6-e4620d63beb6
langcode: en
status: true
dependencies:
module:
- media
- profile
id: profile.field_company_logo
field_name: field_company_logo
entity_type: profile
type: entity_reference
settings:
target_type: media
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
19 changes: 19 additions & 0 deletions config/default/field.storage.profile.field_company_website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 385341e0-f678-4765-a02b-d375321e3d11
langcode: en
status: true
dependencies:
module:
- link
- profile
id: profile.field_company_website
field_name: field_company_website
entity_type: profile
type: link
settings: { }
module: link
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

0 comments on commit b9f86fe

Please sign in to comment.