Migrate from field_body to body

This commit is contained in:
Oliver Davies 2025-06-28 13:47:53 +01:00
parent b9ffd0bad6
commit d7629f1b32
54 changed files with 78 additions and 136 deletions

View file

@ -3,7 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.presentation.field_body
- field.field.node.presentation.body
- field.field.node.presentation.field_events
- node.type.presentation
module:
@ -15,15 +15,9 @@ targetEntityType: node
bundle: presentation
mode: default
content:
created:
type: datetime_timestamp
weight: 2
region: content
settings: { }
third_party_settings: { }
field_body:
body:
type: text_textarea_with_summary
weight: 8
weight: 2
region: content
settings:
rows: 9
@ -31,6 +25,12 @@ content:
placeholder: ''
show_summary: false
third_party_settings: { }
created:
type: datetime_timestamp
weight: 2
region: content
settings: { }
third_party_settings: { }
field_events:
type: paragraphs
weight: 9
@ -101,4 +101,9 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
url_redirects:
weight: 50
region: content
settings: { }
third_party_settings: { }
hidden: { }

View file

@ -3,7 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.presentation.field_body
- field.field.node.presentation.body
- field.field.node.presentation.field_events
- node.type.presentation
module:
@ -15,9 +15,9 @@ targetEntityType: node
bundle: presentation
mode: default
content:
field_body:
body:
type: text_default
label: above
label: hidden
settings: { }
third_party_settings: { }
weight: 0

View file

@ -0,0 +1,32 @@
uuid: 3990c095-c163-4100-8599-b1b0e5a29843
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.presentation.body
- field.field.node.presentation.field_events
- node.type.presentation
module:
- text
- user
id: node.presentation.teaser
targetEntityType: node
bundle: presentation
mode: teaser
content:
body:
type: text_summary_or_trimmed
label: hidden
settings:
trim_length: 600
third_party_settings: { }
weight: 0
region: content
links:
settings: { }
third_party_settings: { }
weight: 100
region: content
hidden:
field_events: true

View file

@ -1,30 +1,28 @@
uuid: cc599835-0c43-4f36-b5b3-ad7fc4db1563
uuid: 2763e469-0dfb-4d01-86e4-4fca0507df80
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_body
- field.storage.node.body
- filter.format.basic_html
- filter.format.full_html
- filter.format.restricted_html
- filter.format.markdown
- node.type.presentation
module:
- text
id: node.presentation.field_body
field_name: field_body
id: node.presentation.body
field_name: body
entity_type: node
bundle: presentation
label: Body
description: ''
required: false
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
display_summary: true
required_summary: true
required_summary: false
allowed_formats:
- markdown
- basic_html
- restricted_html
- full_html
field_type: text_with_summary

View file

@ -1,19 +0,0 @@
uuid: 60434000-73e1-4ff1-9376-6759a817421a
langcode: en
status: true
dependencies:
module:
- node
- text
id: node.field_body
field_name: field_body
entity_type: node
type: text_with_summary
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false