Compare commits

...

2 commits

7 changed files with 85 additions and 16 deletions

View file

@ -4,9 +4,10 @@ status: true
dependencies:
config:
- field.field.paragraph.file.field_file
- field.field.paragraph.file.field_media_document
- paragraphs.paragraphs_type.file
module:
- file
- media_library_media_modify
_core:
default_config_hash: 47c_p3_AKkkCabhYVnOWmPVzSp8BmBg5ERP84VO4EM0
id: paragraph.file.default
@ -14,14 +15,20 @@ targetEntityType: paragraph
bundle: file
mode: default
content:
field_file:
field_media_document:
type: media_library_media_modify_widget
weight: 0
settings:
progress_indicator: throbber
third_party_settings: { }
type: file_generic
region: content
settings:
media_types: { }
form_mode: default
check_selected: false
replace_checkbox_by_order_indicator: false
multi_edit_on_create: false
no_edit_on_create: false
third_party_settings: { }
hidden:
created: true
field_file: true
status: true
uid: true

View file

@ -4,9 +4,8 @@ status: true
dependencies:
config:
- field.field.paragraph.file.field_file
- field.field.paragraph.file.field_media_document
- paragraphs.paragraphs_type.file
module:
- file
_core:
default_config_hash: 7APNi5gpaAg2_8CMsnLPZDur8I52PYdXwRHzYO3SLbg
id: paragraph.file.default
@ -14,12 +13,15 @@ targetEntityType: paragraph
bundle: file
mode: default
content:
field_file:
weight: 0
field_media_document:
type: entity_reference_entity_view
label: hidden
settings: { }
settings:
view_mode: default
link: false
third_party_settings: { }
type: file_default
weight: 0
region: content
hidden:
field_file: true
search_api_excerpt: true

View file

@ -13,17 +13,17 @@ id: paragraph.file.field_file
field_name: field_file
entity_type: paragraph
bundle: file
label: File
label: 'File (deprecated)'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:file'
handler_settings: { }
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'txt pdf odt doc docx'
max_filesize: ''
description_field: true
handler: 'default:file'
handler_settings: { }
field_type: file

View file

@ -0,0 +1,29 @@
uuid: 01a41180-36f8-4cd9-9341-2e620b276a62
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_media_document
- media.type.document
- paragraphs.paragraphs_type.file
id: paragraph.file.field_media_document
field_name: field_media_document
entity_type: paragraph
bundle: file
label: 'Media document'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
document: document
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View file

@ -12,10 +12,10 @@ field_name: field_file
entity_type: paragraph
type: file
settings:
target_type: file
display_field: false
display_default: false
uri_scheme: public
target_type: file
module: file
locked: false
cardinality: -1

View file

@ -0,0 +1,20 @@
uuid: 0f9ff95d-5877-47b0-a77c-01f835ddeedc
langcode: en
status: true
dependencies:
module:
- media
- paragraphs
id: paragraph.field_media_document
field_name: field_media_document
entity_type: paragraph
type: entity_reference
settings:
target_type: media
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View file

@ -21,3 +21,14 @@ matchers:
limit: 100
include_unpublished: false
weight: 0
5dddb224-19c1-45e8-b303-071acde45145:
id: 'entity:media'
uuid: 5dddb224-19c1-45e8-b303-071acde45145
settings:
metadata: ''
bundles:
document: document
group_by_bundle: false
substitution_type: media
limit: 100
weight: 0