Add a new 'Is online' field to event paragraphs

References #241
This commit is contained in:
Oliver Davies 2020-10-24 20:26:36 +01:00
parent 79445b8641
commit de1232d56f
5 changed files with 63 additions and 3 deletions

View file

@ -5,6 +5,7 @@ dependencies:
config:
- field.field.paragraph.event.field_date
- field.field.paragraph.event.field_feedback_url
- field.field.paragraph.event.field_is_online
- field.field.paragraph.event.field_link
- field.field.paragraph.event.field_location
- field.field.paragraph.event.field_name
@ -25,15 +26,22 @@ content:
type: datetime_default
region: content
field_feedback_url:
weight: 5
weight: 6
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
type: link_default
region: content
field_link:
field_is_online:
weight: 4
settings:
display_label: true
third_party_settings: { }
type: boolean_checkbox
region: content
field_link:
weight: 5
settings:
placeholder_url: ''
placeholder_title: ''

View file

@ -5,6 +5,7 @@ dependencies:
config:
- field.field.paragraph.event.field_date
- field.field.paragraph.event.field_feedback_url
- field.field.paragraph.event.field_is_online
- field.field.paragraph.event.field_link
- field.field.paragraph.event.field_location
- field.field.paragraph.event.field_name
@ -27,6 +28,16 @@ content:
third_party_settings: { }
type: datetime_default
region: content
field_is_online:
weight: 5
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
type: boolean
region: content
field_link:
weight: 1
label: hidden

View file

@ -0,0 +1,23 @@
uuid: 63f3d4c3-f079-4c26-828a-df0ea5bb2568
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_is_online
- paragraphs.paragraphs_type.event
id: paragraph.event.field_is_online
field_name: field_is_online
entity_type: paragraph
bundle: event
label: 'Is online'
description: 'Was this talk presented at an online event?'
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean

View file

@ -9,7 +9,7 @@ id: paragraph.event.field_remote
field_name: field_remote
entity_type: paragraph
bundle: event
label: Remote
label: 'Is remote'
description: 'Was this talk presented remotely?'
required: false
translatable: false

View file

@ -0,0 +1,18 @@
uuid: 706e1990-e62b-476f-ab24-af8b6744ee2a
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.field_is_online
field_name: field_is_online
entity_type: paragraph
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false