-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VATEAM-90650: Create Address Digital Form Pattern (#19331)
Creates a Paragraph type in Drupal for the "Address" pattern. The Paragraph type includes an "Include military address checkbox?" boolean field. Adds the new Paragraph type to the list of available Paragraph types in the "Steps" field of the Digital Form content type.
- Loading branch information
1 parent
8ea36c5
commit f6596e2
Showing
13 changed files
with
257 additions
and
53 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
config/sync/core.entity_form_display.paragraph.digital_form_address.default.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 @@ | ||
uuid: 8dd7010f-395f-49c2-b8d4-4a1bca25e802 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.digital_form_address.field_military_address_checkbox | ||
- field.field.paragraph.digital_form_address.field_title | ||
- paragraphs.paragraphs_type.digital_form_address | ||
module: | ||
- textfield_counter | ||
id: paragraph.digital_form_address.default | ||
targetEntityType: paragraph | ||
bundle: digital_form_address | ||
mode: default | ||
content: | ||
field_military_address_checkbox: | ||
type: boolean_checkbox | ||
weight: 2 | ||
region: content | ||
settings: | ||
display_label: true | ||
third_party_settings: { } | ||
field_title: | ||
type: string_textfield_with_counter | ||
weight: 1 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
use_field_maxlength: false | ||
maxlength: 0 | ||
counter_position: after | ||
js_prevent_submit: true | ||
count_only_mode: false | ||
count_html_characters: true | ||
textcount_status_message: 'Maxlength: <span class="maxlength_count">@maxlength</span><br />Used: <span class="current_count">@current_length</span><br />Remaining: <span class="remaining_count">@remaining_count</span>' | ||
third_party_settings: { } | ||
hidden: | ||
created: true | ||
status: true |
34 changes: 34 additions & 0 deletions
34
config/sync/core.entity_view_display.paragraph.digital_form_address.default.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,34 @@ | ||
uuid: b42c50ad-a478-44d3-a17b-3f6e8eee7106 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.digital_form_address.field_military_address_checkbox | ||
- field.field.paragraph.digital_form_address.field_title | ||
- paragraphs.paragraphs_type.digital_form_address | ||
id: paragraph.digital_form_address.default | ||
targetEntityType: paragraph | ||
bundle: digital_form_address | ||
mode: default | ||
content: | ||
field_military_address_checkbox: | ||
type: boolean | ||
label: above | ||
settings: | ||
format: default | ||
format_custom_false: '' | ||
format_custom_true: '' | ||
third_party_settings: { } | ||
weight: 1 | ||
region: content | ||
field_title: | ||
type: string | ||
label: hidden | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: | ||
breadcrumbs: true | ||
search_api_excerpt: true |
26 changes: 26 additions & 0 deletions
26
config/sync/core.entity_view_display.paragraph.digital_form_address.user_guides.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,26 @@ | ||
uuid: 9c0520b1-d6ae-4f32-a85e-154212709a0e | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_view_mode.paragraph.user_guides | ||
- field.field.paragraph.digital_form_address.field_military_address_checkbox | ||
- field.field.paragraph.digital_form_address.field_title | ||
- paragraphs.paragraphs_type.digital_form_address | ||
id: paragraph.digital_form_address.user_guides | ||
targetEntityType: paragraph | ||
bundle: digital_form_address | ||
mode: user_guides | ||
content: | ||
field_title: | ||
type: string | ||
label: hidden | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: | ||
breadcrumbs: true | ||
field_military_address_checkbox: true | ||
search_api_excerpt: true |
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
28 changes: 28 additions & 0 deletions
28
config/sync/field.field.paragraph.digital_form_address.field_military_address_checkbox.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,28 @@ | ||
uuid: 0be9e21a-1d09-4660-aadc-57c066a5ca98 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_military_address_checkbox | ||
- paragraphs.paragraphs_type.digital_form_address | ||
module: | ||
- tmgmt_content | ||
third_party_settings: | ||
tmgmt_content: | ||
excluded: false | ||
id: paragraph.digital_form_address.field_military_address_checkbox | ||
field_name: field_military_address_checkbox | ||
entity_type: paragraph | ||
bundle: digital_form_address | ||
label: 'Include military address checkbox?' | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: | ||
- | ||
value: 1 | ||
default_value_callback: '' | ||
settings: | ||
on_label: 'Yes' | ||
off_label: 'No' | ||
field_type: boolean |
26 changes: 26 additions & 0 deletions
26
config/sync/field.field.paragraph.digital_form_address.field_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,26 @@ | ||
uuid: 80947280-85ad-4b2b-acde-489f5c8b4472 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_title | ||
- paragraphs.paragraphs_type.digital_form_address | ||
module: | ||
- tmgmt_content | ||
third_party_settings: | ||
tmgmt_content: | ||
excluded: false | ||
id: paragraph.digital_form_address.field_title | ||
field_name: field_title | ||
entity_type: paragraph | ||
bundle: digital_form_address | ||
label: Title | ||
description: '' | ||
required: true | ||
translatable: false | ||
default_value: | ||
- | ||
value: 'Mailing address' | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: string |
18 changes: 18 additions & 0 deletions
18
config/sync/field.storage.paragraph.field_military_address_checkbox.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 @@ | ||
uuid: bfc7d4f4-d480-43e3-aa05-9e4c68313553 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- paragraphs | ||
id: paragraph.field_military_address_checkbox | ||
field_name: field_military_address_checkbox | ||
entity_type: paragraph | ||
type: boolean | ||
settings: { } | ||
module: core | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
Oops, something went wrong.