-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #413 from City-of-Helsinki/UHF-7249-popular-servic…
…es-editable-title UHF-7249: Adds update hook to add title field for popular services pa…
- Loading branch information
Showing
8 changed files
with
130 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...nt/config/install/field.field.paragraph.popular_services.field_popular_services_title.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_popular_services_title | ||
- paragraphs.paragraphs_type.popular_services | ||
id: paragraph.popular_services.field_popular_services_title | ||
field_name: field_popular_services_title | ||
entity_type: paragraph | ||
bundle: popular_services | ||
label: Title | ||
description: 'If this field is left empty, the title will be "Popular services"' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: string |
20 changes: 20 additions & 0 deletions
20
...res/helfi_content/config/install/field.storage.paragraph.field_popular_services_title.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- paragraphs | ||
id: paragraph.field_popular_services_title | ||
field_name: field_popular_services_title | ||
entity_type: paragraph | ||
type: string | ||
settings: | ||
max_length: 255 | ||
case_sensitive: false | ||
is_ascii: false | ||
module: core | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
1 change: 1 addition & 0 deletions
1
...onfig/language/fi/field.field.paragraph.popular_services.field_popular_services_title.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
description: 'Jos kenttä jätetään tyhjäksi, otsikoksi tulee "Suosittuja palveluja"' |
1 change: 1 addition & 0 deletions
1
...onfig/language/sv/field.field.paragraph.popular_services.field_popular_services_title.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
description: 'Om detta lämnas tomt, titel är "Populära tjänster"' |
40 changes: 40 additions & 0 deletions
40
helfi_features/helfi_content/config/update/helfi_content_update_9039.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
core.entity_form_display.paragraph.popular_services.default: | ||
expected_config: | ||
content: | ||
field_service_items: | ||
weight: 0 | ||
update_actions: | ||
add: | ||
content: | ||
field_popular_services_title: | ||
type: string_textfield | ||
weight: 0 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
change: | ||
content: | ||
field_service_items: | ||
weight: 1 | ||
core.entity_view_display.paragraph.popular_services.default: | ||
expected_config: | ||
content: | ||
field_service_items: | ||
weight: 0 | ||
update_actions: | ||
add: | ||
content: | ||
field_popular_services_title: | ||
type: string | ||
label: hidden | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
change: | ||
content: | ||
field_service_items: | ||
weight: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters