Compare commits
2 commits
06a640c20d
...
893436dad8
Author | SHA1 | Date | |
---|---|---|---|
893436dad8 | |||
e7860127cc |
7 changed files with 85 additions and 16 deletions
|
@ -4,9 +4,10 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.paragraph.file.field_file
|
- field.field.paragraph.file.field_file
|
||||||
|
- field.field.paragraph.file.field_media_document
|
||||||
- paragraphs.paragraphs_type.file
|
- paragraphs.paragraphs_type.file
|
||||||
module:
|
module:
|
||||||
- file
|
- media_library_media_modify
|
||||||
_core:
|
_core:
|
||||||
default_config_hash: 47c_p3_AKkkCabhYVnOWmPVzSp8BmBg5ERP84VO4EM0
|
default_config_hash: 47c_p3_AKkkCabhYVnOWmPVzSp8BmBg5ERP84VO4EM0
|
||||||
id: paragraph.file.default
|
id: paragraph.file.default
|
||||||
|
@ -14,14 +15,20 @@ targetEntityType: paragraph
|
||||||
bundle: file
|
bundle: file
|
||||||
mode: default
|
mode: default
|
||||||
content:
|
content:
|
||||||
field_file:
|
field_media_document:
|
||||||
|
type: media_library_media_modify_widget
|
||||||
weight: 0
|
weight: 0
|
||||||
settings:
|
|
||||||
progress_indicator: throbber
|
|
||||||
third_party_settings: { }
|
|
||||||
type: file_generic
|
|
||||||
region: content
|
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:
|
hidden:
|
||||||
created: true
|
created: true
|
||||||
|
field_file: true
|
||||||
status: true
|
status: true
|
||||||
uid: true
|
uid: true
|
||||||
|
|
|
@ -4,9 +4,8 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.paragraph.file.field_file
|
- field.field.paragraph.file.field_file
|
||||||
|
- field.field.paragraph.file.field_media_document
|
||||||
- paragraphs.paragraphs_type.file
|
- paragraphs.paragraphs_type.file
|
||||||
module:
|
|
||||||
- file
|
|
||||||
_core:
|
_core:
|
||||||
default_config_hash: 7APNi5gpaAg2_8CMsnLPZDur8I52PYdXwRHzYO3SLbg
|
default_config_hash: 7APNi5gpaAg2_8CMsnLPZDur8I52PYdXwRHzYO3SLbg
|
||||||
id: paragraph.file.default
|
id: paragraph.file.default
|
||||||
|
@ -14,12 +13,15 @@ targetEntityType: paragraph
|
||||||
bundle: file
|
bundle: file
|
||||||
mode: default
|
mode: default
|
||||||
content:
|
content:
|
||||||
field_file:
|
field_media_document:
|
||||||
weight: 0
|
type: entity_reference_entity_view
|
||||||
label: hidden
|
label: hidden
|
||||||
settings: { }
|
settings:
|
||||||
|
view_mode: default
|
||||||
|
link: false
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: file_default
|
weight: 0
|
||||||
region: content
|
region: content
|
||||||
hidden:
|
hidden:
|
||||||
|
field_file: true
|
||||||
search_api_excerpt: true
|
search_api_excerpt: true
|
||||||
|
|
|
@ -13,17 +13,17 @@ id: paragraph.file.field_file
|
||||||
field_name: field_file
|
field_name: field_file
|
||||||
entity_type: paragraph
|
entity_type: paragraph
|
||||||
bundle: file
|
bundle: file
|
||||||
label: File
|
label: 'File (deprecated)'
|
||||||
description: ''
|
description: ''
|
||||||
required: false
|
required: false
|
||||||
translatable: false
|
translatable: false
|
||||||
default_value: { }
|
default_value: { }
|
||||||
default_value_callback: ''
|
default_value_callback: ''
|
||||||
settings:
|
settings:
|
||||||
|
handler: 'default:file'
|
||||||
|
handler_settings: { }
|
||||||
file_directory: '[date:custom:Y]-[date:custom:m]'
|
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||||
file_extensions: 'txt pdf odt doc docx'
|
file_extensions: 'txt pdf odt doc docx'
|
||||||
max_filesize: ''
|
max_filesize: ''
|
||||||
description_field: true
|
description_field: true
|
||||||
handler: 'default:file'
|
|
||||||
handler_settings: { }
|
|
||||||
field_type: file
|
field_type: file
|
||||||
|
|
29
config/field.field.paragraph.file.field_media_document.yml
Normal file
29
config/field.field.paragraph.file.field_media_document.yml
Normal 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
|
|
@ -12,10 +12,10 @@ field_name: field_file
|
||||||
entity_type: paragraph
|
entity_type: paragraph
|
||||||
type: file
|
type: file
|
||||||
settings:
|
settings:
|
||||||
|
target_type: file
|
||||||
display_field: false
|
display_field: false
|
||||||
display_default: false
|
display_default: false
|
||||||
uri_scheme: public
|
uri_scheme: public
|
||||||
target_type: file
|
|
||||||
module: file
|
module: file
|
||||||
locked: false
|
locked: false
|
||||||
cardinality: -1
|
cardinality: -1
|
||||||
|
|
20
config/field.storage.paragraph.field_media_document.yml
Normal file
20
config/field.storage.paragraph.field_media_document.yml
Normal 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
|
|
@ -21,3 +21,14 @@ matchers:
|
||||||
limit: 100
|
limit: 100
|
||||||
include_unpublished: false
|
include_unpublished: false
|
||||||
weight: 0
|
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
|
||||||
|
|
Loading…
Reference in a new issue