Add Send to social media
checkbox to posts
Also add it to the `opdavies_blog_test` module config so that the existing tests continue to work and pass. References #249
This commit is contained in:
parent
eb23d93fe0
commit
19c5529094
7 changed files with 92 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_send_to_social_media
|
||||
- node.type.post
|
||||
id: node.post.field_send_to_social_media
|
||||
field_name: field_send_to_social_media
|
||||
entity_type: node
|
||||
bundle: post
|
||||
label: 'Send to social media'
|
||||
description: 'Automatically send this post to Twitter and LinkedIn.'
|
||||
required: false
|
||||
translatable: false
|
||||
default_value:
|
||||
-
|
||||
value: 1
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
on_label: 'On'
|
||||
off_label: 'Off'
|
||||
field_type: boolean
|
|
@ -0,0 +1,17 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- node
|
||||
id: node.field_send_to_social_media
|
||||
field_name: field_send_to_social_media
|
||||
entity_type: node
|
||||
type: boolean
|
||||
settings: { }
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
Loading…
Add table
Add a link
Reference in a new issue