Skip to content

Commit eb35c5c

Browse files
convivial-demo-42901: Add delete file link. (#388)
Mirrored from (c-43007). Co-authored-by: Jan Pára <honza@morpht.com>
1 parent a06a2eb commit eb35c5c

5 files changed

Lines changed: 96 additions & 27 deletions

config/install/core.entity_form_display.media.audio.default.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ mode: default
1818
content:
1919
created:
2020
type: datetime_timestamp
21-
weight: 3
21+
weight: 4
2222
region: content
2323
settings: { }
2424
third_party_settings: { }
2525
field_body:
2626
type: text_textarea_with_summary
27-
weight: 29
27+
weight: 8
2828
region: content
2929
settings:
3030
rows: 9
@@ -41,14 +41,14 @@ content:
4141
third_party_settings: { }
4242
field_search_exclude:
4343
type: boolean_checkbox
44-
weight: 28
44+
weight: 7
4545
region: content
4646
settings:
4747
display_label: true
4848
third_party_settings: { }
4949
field_tags:
5050
type: entity_reference_autocomplete_tags
51-
weight: 26
51+
weight: 6
5252
region: content
5353
settings:
5454
match_operator: CONTAINS
@@ -58,7 +58,7 @@ content:
5858
third_party_settings: { }
5959
field_transcript:
6060
type: text_textarea
61-
weight: 30
61+
weight: 9
6262
region: content
6363
settings:
6464
rows: 5
@@ -72,16 +72,21 @@ content:
7272
size: 60
7373
placeholder: ''
7474
third_party_settings: { }
75+
replace_file:
76+
weight: 2
77+
region: content
78+
settings: { }
79+
third_party_settings: { }
7580
status:
7681
type: boolean_checkbox
77-
weight: 4
82+
weight: 5
7883
region: content
7984
settings:
8085
display_label: true
8186
third_party_settings: { }
8287
uid:
8388
type: entity_reference_autocomplete
84-
weight: 2
89+
weight: 3
8590
region: content
8691
settings:
8792
match_operator: CONTAINS
@@ -92,4 +97,3 @@ content:
9297
hidden:
9398
moderation_state: true
9499
path: true
95-
replace_file: true

config/install/core.entity_form_display.media.file.default.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ mode: default
1717
content:
1818
created:
1919
type: datetime_timestamp
20-
weight: 4
20+
weight: 5
2121
region: content
2222
settings: { }
2323
third_party_settings: { }
2424
field_body:
2525
type: text_textarea_with_summary
26-
weight: 29
26+
weight: 8
2727
region: content
2828
settings:
2929
rows: 9
@@ -40,14 +40,14 @@ content:
4040
third_party_settings: { }
4141
field_search_exclude:
4242
type: boolean_checkbox
43-
weight: 28
43+
weight: 7
4444
region: content
4545
settings:
4646
display_label: true
4747
third_party_settings: { }
4848
field_tags:
4949
type: entity_reference_autocomplete_tags
50-
weight: 26
50+
weight: 6
5151
region: content
5252
settings:
5353
match_operator: CONTAINS
@@ -63,16 +63,21 @@ content:
6363
size: 60
6464
placeholder: ''
6565
third_party_settings: { }
66+
replace_file:
67+
weight: 2
68+
region: content
69+
settings: { }
70+
third_party_settings: { }
6671
status:
6772
type: boolean_checkbox
68-
weight: 2
73+
weight: 3
6974
region: content
7075
settings:
7176
display_label: true
7277
third_party_settings: { }
7378
uid:
7479
type: entity_reference_autocomplete
75-
weight: 3
80+
weight: 4
7681
region: content
7782
settings:
7883
match_operator: CONTAINS
@@ -83,4 +88,3 @@ content:
8388
hidden:
8489
moderation_state: true
8590
path: true
86-
replace_file: true

config/install/core.entity_form_display.media.image.default.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ mode: default
1818
content:
1919
created:
2020
type: datetime_timestamp
21-
weight: 4
21+
weight: 5
2222
region: content
2323
settings: { }
2424
third_party_settings: { }
2525
field_body:
2626
type: text_textarea_with_summary
27-
weight: 8
27+
weight: 9
2828
region: content
2929
settings:
3030
rows: 9
@@ -44,14 +44,14 @@ content:
4444
third_party_settings: { }
4545
field_search_exclude:
4646
type: boolean_checkbox
47-
weight: 7
47+
weight: 8
4848
region: content
4949
settings:
5050
display_label: true
5151
third_party_settings: { }
5252
field_tags:
5353
type: entity_reference_autocomplete_tags
54-
weight: 5
54+
weight: 6
5555
region: content
5656
settings:
5757
match_operator: CONTAINS
@@ -67,16 +67,21 @@ content:
6767
size: 60
6868
placeholder: ''
6969
third_party_settings: { }
70+
replace_file:
71+
weight: 2
72+
region: content
73+
settings: { }
74+
third_party_settings: { }
7075
status:
7176
type: boolean_checkbox
72-
weight: 2
77+
weight: 3
7378
region: content
7479
settings:
7580
display_label: true
7681
third_party_settings: { }
7782
uid:
7883
type: entity_reference_autocomplete
79-
weight: 3
84+
weight: 4
8085
region: content
8186
settings:
8287
match_operator: CONTAINS
@@ -87,4 +92,3 @@ content:
8792
hidden:
8893
moderation_state: true
8994
path: true
90-
replace_file: true

config/install/core.entity_form_display.media.video.default.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mode: default
1818
content:
1919
created:
2020
type: datetime_timestamp
21-
weight: 3
21+
weight: 4
2222
region: content
2323
settings: { }
2424
third_party_settings: { }
@@ -48,7 +48,7 @@ content:
4848
third_party_settings: { }
4949
field_tags:
5050
type: entity_reference_autocomplete_tags
51-
weight: 5
51+
weight: 6
5252
region: content
5353
settings:
5454
match_operator: CONTAINS
@@ -72,16 +72,21 @@ content:
7272
size: 60
7373
placeholder: ''
7474
third_party_settings: { }
75+
replace_file:
76+
weight: 2
77+
region: content
78+
settings: { }
79+
third_party_settings: { }
7580
status:
7681
type: boolean_checkbox
77-
weight: 4
82+
weight: 5
7883
region: content
7984
settings:
8085
display_label: true
8186
third_party_settings: { }
8287
uid:
8388
type: entity_reference_autocomplete
84-
weight: 2
89+
weight: 3
8590
region: content
8691
settings:
8792
match_operator: CONTAINS
@@ -92,4 +97,3 @@ content:
9297
hidden:
9398
moderation_state: true
9499
path: true
95-
replace_file: true

config/install/views.view.files.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,59 @@ display:
463463
format_plural_string: !!binary MSBwbGFjZQNAY291bnQgcGxhY2Vz
464464
prefix: ''
465465
suffix: ''
466+
delete_file:
467+
id: delete_file
468+
table: file_managed
469+
field: delete_file
470+
relationship: none
471+
group_type: group
472+
admin_label: ''
473+
entity_type: file
474+
plugin_id: entity_link_delete
475+
label: 'Link to delete File'
476+
exclude: false
477+
alter:
478+
alter_text: false
479+
text: ''
480+
make_link: false
481+
path: ''
482+
absolute: false
483+
external: false
484+
replace_spaces: false
485+
path_case: none
486+
trim_whitespace: false
487+
alt: ''
488+
rel: ''
489+
link_class: ''
490+
prefix: ''
491+
suffix: ''
492+
target: ''
493+
nl2br: false
494+
max_length: 0
495+
word_boundary: true
496+
ellipsis: true
497+
more_link: false
498+
more_link_text: ''
499+
more_link_path: ''
500+
strip_tags: false
501+
trim: false
502+
preserve_tags: ''
503+
html: false
504+
element_type: ''
505+
element_class: ''
506+
element_label_type: ''
507+
element_label_class: ''
508+
element_label_colon: true
509+
element_wrapper_type: ''
510+
element_wrapper_class: ''
511+
element_default_classes: true
512+
empty: ''
513+
hide_empty: false
514+
empty_zero: false
515+
hide_alter_empty: true
516+
text: delete
517+
output_url_as_text: false
518+
absolute: false
466519
pager:
467520
type: mini
468521
options:

0 commit comments

Comments
 (0)