Add talk type field

This commit is contained in:
Oliver Davies 2020-08-21 12:00:00 +01:00
parent 7d71915518
commit 239b2c071c
7 changed files with 71 additions and 1 deletions

2
.gitignore vendored
View file

@ -5,7 +5,7 @@
!/.github/
!/.idea/
!/bin/
!/config/
!/config/**
!/Makefile
!/phpcs.xml.dist
!/phpstan.neon

View file

@ -7,6 +7,7 @@ dependencies:
- field.field.node.talk.field_events
- field.field.node.talk.field_excerpt
- field.field.node.talk.field_slides
- field.field.node.talk.field_type
- field.field.node.talk.field_video
- node.type.talk
module:
@ -63,6 +64,12 @@ content:
third_party_settings: { }
type: speakerdeck_widget
region: content
field_type:
weight: 52
settings: { }
third_party_settings: { }
type: options_select
region: content
field_video:
weight: 7
settings:

View file

@ -7,10 +7,12 @@ dependencies:
- field.field.node.talk.field_events
- field.field.node.talk.field_excerpt
- field.field.node.talk.field_slides
- field.field.node.talk.field_type
- field.field.node.talk.field_video
- node.type.talk
module:
- entity_reference_revisions
- options
- speakerdeck_field
- text
- user
@ -42,6 +44,13 @@ content:
third_party_settings: { }
type: speakerdeck_formatter
region: content
field_type:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_video:
type: entity_reference_entity_view
weight: 2

View file

@ -8,6 +8,7 @@ dependencies:
- field.field.node.talk.field_events
- field.field.node.talk.field_excerpt
- field.field.node.talk.field_slides
- field.field.node.talk.field_type
- field.field.node.talk.field_video
- node.type.talk
module:
@ -33,4 +34,5 @@ hidden:
body: true
field_events: true
field_slides: true
field_type: true
field_video: true

View file

@ -41,6 +41,7 @@ module:
migrate_tools: 0
node: 0
opd_talks: 0
options: 0
page_cache: 0
path: 0
path_alias: 0

View file

@ -0,0 +1,21 @@
uuid: 346d016f-1b73-4f4d-a55f-7897157556ca
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_type
- node.type.talk
module:
- options
id: node.talk.field_type
field_name: field_type
entity_type: node
bundle: talk
label: Type
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View file

@ -0,0 +1,30 @@
uuid: fb33d12b-713e-4017-9b63-bf3f3d73d4eb
langcode: en
status: true
dependencies:
module:
- node
- options
id: node.field_type
field_name: field_type
entity_type: node
type: list_string
settings:
allowed_values:
-
value: talk
label: Talk
-
value: lightning
label: 'Lightning talk'
-
value: workshop
label: Workshop
allowed_values_function: ''
module: options
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false