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

VATEAM-87711: Add Digital Form content type #18717

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
22 changes: 22 additions & 0 deletions config/sync/core.base_field_override.node.digital_form.promote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: ac87a752-cc60-4bde-bd33-18098f65e851
langcode: en
status: true
Copy link
Contributor

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.

Copy link
Contributor Author

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.

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 config/sync/core.base_field_override.node.digital_form.title.yml
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 config/sync/core.entity_form_display.node.digital_form.default.yml
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 config/sync/core.entity_view_display.node.digital_form.default.yml
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
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 config/sync/core.entity_view_display.node.digital_form.teaser.yml
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 config/sync/field.field.node.digital_form.field_administration.yml
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
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 config/sync/field.field.node.digital_form.field_meta_tags.yml
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
Loading
Loading