Add event date field

This commit is contained in:
Oliver Davies 2020-02-14 23:33:09 +00:00
parent 1c9eb77604
commit b75343a17b
4 changed files with 61 additions and 1 deletions

View file

@ -3,18 +3,26 @@ langcode: en
status: true
dependencies:
config:
- field.field.paragraph.event.field_date
- field.field.paragraph.event.field_link
- field.field.paragraph.event.field_name
- paragraphs.paragraphs_type.event
module:
- datetime
- link
id: paragraph.event.default
targetEntityType: paragraph
bundle: event
mode: default
content:
field_link:
field_date:
weight: 1
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_link:
weight: 2
settings:
placeholder_url: ''
placeholder_title: ''

View file

@ -3,16 +3,27 @@ langcode: en
status: true
dependencies:
config:
- field.field.paragraph.event.field_date
- field.field.paragraph.event.field_link
- field.field.paragraph.event.field_name
- paragraphs.paragraphs_type.event
module:
- datetime
- link
id: paragraph.event.default
targetEntityType: paragraph
bundle: event
mode: default
content:
field_date:
weight: 2
label: above
settings:
format_type: medium
timezone_override: ''
third_party_settings: { }
type: datetime_default
region: content
field_link:
weight: 1
label: above

View file

@ -0,0 +1,21 @@
uuid: d14d1f44-fcea-4076-95e2-cceaac1f3918
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_date
- paragraphs.paragraphs_type.event
module:
- datetime
id: paragraph.event.field_date
field_name: field_date
entity_type: paragraph
bundle: event
label: Date
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime

View file

@ -0,0 +1,20 @@
uuid: 48a575a5-c085-4f5e-9c73-05c5eb8e608a
langcode: en
status: true
dependencies:
module:
- datetime
- paragraphs
id: paragraph.field_date
field_name: field_date
entity_type: paragraph
type: datetime
settings:
datetime_type: date
module: datetime
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false