Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uhf 9193 maternity clinic search #732

Merged
merged 6 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
uuid: 29700936-f444-4927-aec5-8441af0ce595
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.maternity_and_child_health_clini.field_comp_search_description
- field.field.paragraph.maternity_and_child_health_clini.field_comp_search_title
- paragraphs.paragraphs_type.maternity_and_child_health_clini
module:
- text
id: paragraph.maternity_and_child_health_clini.default
targetEntityType: paragraph
bundle: maternity_and_child_health_clini
mode: default
content:
field_comp_search_description:
type: text_textarea
weight: 1
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_comp_search_title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
uuid: c1eca733-4791-4a4f-8702-e50efaa32ad7
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.maternity_and_child_health_clini.field_comp_search_description
- field.field.paragraph.maternity_and_child_health_clini.field_comp_search_title
- paragraphs.paragraphs_type.maternity_and_child_health_clini
module:
- text
id: paragraph.maternity_and_child_health_clini.default
targetEntityType: paragraph
bundle: maternity_and_child_health_clini
mode: default
content:
field_comp_search_description:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
region: content
field_comp_search_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
26 changes: 16 additions & 10 deletions conf/cmi/field.field.node.landing_page.field_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- paragraphs.paragraphs_type.liftup_with_image
- paragraphs.paragraphs_type.list_of_links
- paragraphs.paragraphs_type.map
- paragraphs.paragraphs_type.maternity_and_child_health_clini
- paragraphs.paragraphs_type.news_list
- paragraphs.paragraphs_type.phasing
- paragraphs.paragraphs_type.popular_services
Expand Down Expand Up @@ -45,28 +46,29 @@ settings:
handler: 'default:paragraph'
handler_settings:
target_bundles:
banner: banner
chart: chart
columns: columns
list_of_links: list_of_links
content_cards: content_cards
content_liftup: content_liftup
banner: banner
liftup_with_image: liftup_with_image
event_list: event_list
from_library: from_library
chart: chart
remote_video: remote_video
health_station_search: health_station_search
hearings: hearings
liftup_with_image: liftup_with_image
list_of_links: list_of_links
map: map
news_list: news_list
event_list: event_list
phasing: phasing
popular_services: popular_services
remote_video: remote_video
service_list: service_list
service_list_search: service_list_search
target_group_links: target_group_links
unit_accessibility_information: unit_accessibility_information
unit_contact_card: unit_contact_card
unit_search: unit_search
service_list: service_list
service_list_search: service_list_search
hearings: hearings
health_station_search: health_station_search
maternity_and_child_health_clini: maternity_and_child_health_clini
negate: 0
target_bundles_drag_drop:
j-mys marked this conversation as resolved.
Show resolved Hide resolved
banner:
Expand Down Expand Up @@ -135,4 +137,8 @@ settings:
unit_search:
weight: 0
enabled: true
maternity_and_child_health_clini:
weight: 0
enabled: true
field_type: entity_reference_revisions

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: f3264df4-d1a7-4218-80a1-ea18cef385a1
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_comp_search_description
- paragraphs.paragraphs_type.maternity_and_child_health_clini
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
allowed_formats: { }
id: paragraph.maternity_and_child_health_clini.field_comp_search_description
field_name: field_comp_search_description
entity_type: paragraph
bundle: maternity_and_child_health_clini
label: Description
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: b974b07d-590b-48f2-8bf7-bac3ca674758
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_comp_search_title
- paragraphs.paragraphs_type.maternity_and_child_health_clini
id: paragraph.maternity_and_child_health_clini.field_comp_search_title
field_name: field_comp_search_title
entity_type: paragraph
bundle: maternity_and_child_health_clini
label: Title
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: Neuvolahaku
description: 'Tarjoaa haun lähimmän neuvolan löytämiseen'
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 3febcb44-9c90-4098-aa40-f877afb0d341
langcode: en
status: true
dependencies: { }
id: maternity_and_child_health_clini
label: 'Maternity and child health clinic'
icon_uuid: null
icon_default: null
description: 'Provides a paragraph for searching / filtering maternity and child health clinics.'
behavior_plugins: { }
3 changes: 3 additions & 0 deletions public/modules/custom/helfi_sote/helfi_sote.module
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ function helfi_sote_helfi_paragraph_types() : array {
'field_content' => [
'unit_accessibility_information',
'unit_contact_card',
'health_station_search',
'maternity_and_child_health_clini',
],
],
],
Expand Down Expand Up @@ -135,6 +137,7 @@ function helfi_sote_preprocess_block(&$variables) {
// and add classes accordingly.
$paragraph_types = [
'health_station_search',
'maternity_and_child_health_clini',
];

if (in_array($paragraph->getType(), $paragraph_types)) {
Expand Down