-
Notifications
You must be signed in to change notification settings - Fork 70
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
VATEAM-87711: Add Digital Form content type #18717
Merged
ryguyk
merged 2 commits into
integration-form-engine-poc
from
87711-add-digital-form-content-type
Jul 31, 2024
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
config/sync/core.base_field_override.node.digital_form.promote.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,22 @@ | ||
uuid: ac87a752-cc60-4bde-bd33-18098f65e851 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- node.type.digital_form | ||
id: node.digital_form.promote | ||
field_name: promote | ||
entity_type: node | ||
bundle: digital_form | ||
label: 'Promoted to front page' | ||
description: '' | ||
required: false | ||
translatable: true | ||
default_value: | ||
- | ||
value: 0 | ||
default_value_callback: '' | ||
settings: | ||
on_label: 'On' | ||
off_label: 'Off' | ||
field_type: boolean |
18 changes: 18 additions & 0 deletions
18
config/sync/core.base_field_override.node.digital_form.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 @@ | ||
uuid: 2449594d-1ce2-4f60-aab4-1da1b27f5864 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- node.type.digital_form | ||
id: node.digital_form.title | ||
field_name: title | ||
entity_type: node | ||
bundle: digital_form | ||
label: 'Form Name' | ||
description: '' | ||
required: true | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: string |
96 changes: 96 additions & 0 deletions
96
config/sync/core.entity_form_display.node.digital_form.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,96 @@ | ||
uuid: 18ba1fa4-f0d9-45f4-9547-0c55f1868ba2 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.node.digital_form.field_administration | ||
- field.field.node.digital_form.field_last_saved_by_an_editor | ||
- field.field.node.digital_form.field_meta_tags | ||
- field.field.node.digital_form.field_omb_number | ||
- field.field.node.digital_form.field_va_form_number | ||
- node.type.digital_form | ||
- workflows.workflow.editorial | ||
module: | ||
- content_moderation | ||
- field_group | ||
- path | ||
third_party_settings: | ||
field_group: | ||
group_editorial_workflow: | ||
children: | ||
- moderation_state | ||
- revision_log | ||
label: 'Editorial Workflow' | ||
region: content | ||
parent_name: '' | ||
weight: 6 | ||
format_type: fieldset | ||
format_settings: | ||
classes: '' | ||
show_empty_fields: false | ||
id: '' | ||
description: '' | ||
required_fields: true | ||
description_display: after | ||
id: node.digital_form.default | ||
targetEntityType: node | ||
bundle: digital_form | ||
mode: default | ||
content: | ||
field_administration: | ||
type: options_select | ||
weight: 1 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
field_last_saved_by_an_editor: | ||
type: datetime_timestamp | ||
weight: 3 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
field_omb_number: | ||
type: string_textfield | ||
weight: 5 | ||
region: content | ||
settings: | ||
size: 9 | ||
placeholder: XXXX-XXXX | ||
third_party_settings: { } | ||
field_va_form_number: | ||
type: string_textfield | ||
weight: 2 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
moderation_state: | ||
type: moderation_state_default | ||
weight: 12 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
path: | ||
type: path | ||
weight: 4 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
title: | ||
type: string_textfield | ||
weight: 0 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
hidden: | ||
created: true | ||
field_meta_tags: true | ||
langcode: true | ||
promote: true | ||
status: true | ||
sticky: true | ||
uid: true | ||
url_redirects: true |
43 changes: 43 additions & 0 deletions
43
config/sync/core.entity_view_display.node.digital_form.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,43 @@ | ||
uuid: 73414b44-8d43-4231-9695-b8092f02e821 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.node.digital_form.field_administration | ||
- field.field.node.digital_form.field_last_saved_by_an_editor | ||
- field.field.node.digital_form.field_meta_tags | ||
- field.field.node.digital_form.field_omb_number | ||
- field.field.node.digital_form.field_va_form_number | ||
- node.type.digital_form | ||
module: | ||
- user | ||
id: node.digital_form.default | ||
targetEntityType: node | ||
bundle: digital_form | ||
mode: default | ||
content: | ||
field_omb_number: | ||
type: string | ||
label: above | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
weight: 1 | ||
region: content | ||
field_va_form_number: | ||
type: string | ||
label: above | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: | ||
breadcrumbs: true | ||
content_moderation_control: true | ||
field_administration: true | ||
field_last_saved_by_an_editor: true | ||
field_meta_tags: true | ||
langcode: true | ||
links: true | ||
search_api_excerpt: true |
57 changes: 57 additions & 0 deletions
57
config/sync/core.entity_view_display.node.digital_form.external_content.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,57 @@ | ||
uuid: bae3d4cd-0dd9-4a17-972b-ff3ef6bf7ba5 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_view_mode.node.external_content | ||
- field.field.node.digital_form.field_administration | ||
- field.field.node.digital_form.field_last_saved_by_an_editor | ||
- field.field.node.digital_form.field_meta_tags | ||
- field.field.node.digital_form.field_omb_number | ||
- field.field.node.digital_form.field_va_form_number | ||
- node.type.digital_form | ||
module: | ||
- link | ||
- user | ||
id: node.digital_form.external_content | ||
targetEntityType: node | ||
bundle: digital_form | ||
mode: external_content | ||
content: | ||
breadcrumbs: | ||
type: link | ||
label: hidden | ||
settings: | ||
trim_length: 80 | ||
url_only: false | ||
url_plain: false | ||
rel: '' | ||
target: '' | ||
third_party_settings: { } | ||
weight: -5 | ||
region: content | ||
content_moderation_control: | ||
settings: { } | ||
third_party_settings: { } | ||
weight: -20 | ||
region: content | ||
field_va_form_number: | ||
type: string | ||
label: above | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
weight: 1 | ||
region: content | ||
links: | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 100 | ||
region: content | ||
hidden: | ||
field_administration: true | ||
field_last_saved_by_an_editor: true | ||
field_meta_tags: true | ||
field_omb_number: true | ||
langcode: true | ||
search_api_excerpt: true |
50 changes: 50 additions & 0 deletions
50
config/sync/core.entity_view_display.node.digital_form.teaser.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,50 @@ | ||
uuid: acbd9ba8-c64b-4b82-a7dd-11f8fe57a9ff | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_view_mode.node.teaser | ||
- field.field.node.digital_form.field_administration | ||
- field.field.node.digital_form.field_last_saved_by_an_editor | ||
- field.field.node.digital_form.field_meta_tags | ||
- field.field.node.digital_form.field_omb_number | ||
- field.field.node.digital_form.field_va_form_number | ||
- node.type.digital_form | ||
module: | ||
- link | ||
- user | ||
id: node.digital_form.teaser | ||
targetEntityType: node | ||
bundle: digital_form | ||
mode: teaser | ||
content: | ||
breadcrumbs: | ||
type: link | ||
label: hidden | ||
settings: | ||
trim_length: 80 | ||
url_only: false | ||
url_plain: false | ||
rel: '' | ||
target: '' | ||
third_party_settings: { } | ||
weight: -5 | ||
region: content | ||
content_moderation_control: | ||
settings: { } | ||
third_party_settings: { } | ||
weight: -20 | ||
region: content | ||
links: | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 100 | ||
region: content | ||
hidden: | ||
field_administration: true | ||
field_last_saved_by_an_editor: true | ||
field_meta_tags: true | ||
field_omb_number: true | ||
field_va_form_number: true | ||
langcode: true | ||
search_api_excerpt: true |
39 changes: 39 additions & 0 deletions
39
config/sync/field.field.node.digital_form.field_administration.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,39 @@ | ||
uuid: d49d4508-3a4d-4b12-a8d9-51b44eb854ca | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_administration | ||
- node.type.digital_form | ||
- taxonomy.vocabulary.administration | ||
module: | ||
- entity_reference_validators | ||
- tmgmt_content | ||
third_party_settings: | ||
entity_reference_validators: | ||
circular_reference: false | ||
circular_reference_deep: false | ||
duplicate_reference: false | ||
tmgmt_content: | ||
excluded: false | ||
id: node.digital_form.field_administration | ||
field_name: field_administration | ||
entity_type: node | ||
bundle: digital_form | ||
label: Section | ||
description: '' | ||
required: true | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:taxonomy_term' | ||
handler_settings: | ||
target_bundles: | ||
administration: administration | ||
sort: | ||
field: name | ||
direction: asc | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
26 changes: 26 additions & 0 deletions
26
config/sync/field.field.node.digital_form.field_last_saved_by_an_editor.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: e173d8c9-2458-49d9-8406-7654da2c8882 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_last_saved_by_an_editor | ||
- node.type.digital_form | ||
module: | ||
- tmgmt_content | ||
third_party_settings: | ||
tmgmt_content: | ||
excluded: false | ||
id: node.digital_form.field_last_saved_by_an_editor | ||
field_name: field_last_saved_by_an_editor | ||
entity_type: node | ||
bundle: digital_form | ||
label: 'Last Saved by an Editor' | ||
description: 'This is the last time an editor interacted with this content. This field is populated automatically when you click Save.' | ||
required: false | ||
translatable: false | ||
default_value: | ||
- | ||
value: 1721337765 | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: timestamp |
25 changes: 25 additions & 0 deletions
25
config/sync/field.field.node.digital_form.field_meta_tags.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,25 @@ | ||
uuid: 065acdc6-1465-452e-8a8e-53c6ff7e37ca | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_meta_tags | ||
- node.type.digital_form | ||
module: | ||
- metatag | ||
- tmgmt_content | ||
third_party_settings: | ||
tmgmt_content: | ||
excluded: false | ||
id: node.digital_form.field_meta_tags | ||
field_name: field_meta_tags | ||
entity_type: node | ||
bundle: digital_form | ||
label: 'Meta tags' | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: metatag |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like we wouldn't need this field. I think that means we could set
status: false
(or perhaps remove this file altogether). That said, I'm not seeing this on the UI. So I'm a bit perplexed. I need to dig in further to understand what's going on. I imagine a lot of this is happening automatically with config export, but I don't know enough to know why.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is one of those fields that I had to manually disable in the Drupal UI, as it was added automatically. I'm hesitant to remove it for fear that something depends on it.