Oliver Davies
8385d6fef7
Check if a post has previously been sent to social media, by checking the value of a `field_sent_to_social_media` field. This field is hidden on the node add/edit forms, and populated when a post is sent to social media. Once this happens, it will not be sent to social media again. This change also populates the field for all existing posts, so that they won't be re-sent to social media either.
19 lines
353 B
YAML
19 lines
353 B
YAML
uuid: 2fead662-4d91-4788-b739-8e1a56d236af
|
|
langcode: en
|
|
status: true
|
|
dependencies:
|
|
module:
|
|
- node
|
|
id: node.field_sent_to_social_media
|
|
field_name: field_sent_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
|