From df5f24e26181d01d74894fb30ff8af7133cb447c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20P=C3=A1ra?= Date: Wed, 30 Jul 2025 14:09:28 +0000 Subject: [PATCH] convivial-demo-42901: Add delete file link. Mirrored from (c-43007). --- ...ntity_form_display.media.audio.default.yml | 20 ++++--- ...entity_form_display.media.file.default.yml | 18 ++++--- ...ntity_form_display.media.image.default.yml | 18 ++++--- ...ntity_form_display.media.video.default.yml | 14 +++-- config/install/views.view.files.yml | 53 +++++++++++++++++++ 5 files changed, 96 insertions(+), 27 deletions(-) diff --git a/config/install/core.entity_form_display.media.audio.default.yml b/config/install/core.entity_form_display.media.audio.default.yml index 52dabc1e..52ff03f8 100644 --- a/config/install/core.entity_form_display.media.audio.default.yml +++ b/config/install/core.entity_form_display.media.audio.default.yml @@ -18,13 +18,13 @@ mode: default content: created: type: datetime_timestamp - weight: 3 + weight: 4 region: content settings: { } third_party_settings: { } field_body: type: text_textarea_with_summary - weight: 29 + weight: 8 region: content settings: rows: 9 @@ -41,14 +41,14 @@ content: third_party_settings: { } field_search_exclude: type: boolean_checkbox - weight: 28 + weight: 7 region: content settings: display_label: true third_party_settings: { } field_tags: type: entity_reference_autocomplete_tags - weight: 26 + weight: 6 region: content settings: match_operator: CONTAINS @@ -58,7 +58,7 @@ content: third_party_settings: { } field_transcript: type: text_textarea - weight: 30 + weight: 9 region: content settings: rows: 5 @@ -72,16 +72,21 @@ content: size: 60 placeholder: '' third_party_settings: { } + replace_file: + weight: 2 + region: content + settings: { } + third_party_settings: { } status: type: boolean_checkbox - weight: 4 + weight: 5 region: content settings: display_label: true third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 2 + weight: 3 region: content settings: match_operator: CONTAINS @@ -92,4 +97,3 @@ content: hidden: moderation_state: true path: true - replace_file: true diff --git a/config/install/core.entity_form_display.media.file.default.yml b/config/install/core.entity_form_display.media.file.default.yml index 7b924043..7a8eacb0 100644 --- a/config/install/core.entity_form_display.media.file.default.yml +++ b/config/install/core.entity_form_display.media.file.default.yml @@ -17,13 +17,13 @@ mode: default content: created: type: datetime_timestamp - weight: 4 + weight: 5 region: content settings: { } third_party_settings: { } field_body: type: text_textarea_with_summary - weight: 29 + weight: 8 region: content settings: rows: 9 @@ -40,14 +40,14 @@ content: third_party_settings: { } field_search_exclude: type: boolean_checkbox - weight: 28 + weight: 7 region: content settings: display_label: true third_party_settings: { } field_tags: type: entity_reference_autocomplete_tags - weight: 26 + weight: 6 region: content settings: match_operator: CONTAINS @@ -63,16 +63,21 @@ content: size: 60 placeholder: '' third_party_settings: { } + replace_file: + weight: 2 + region: content + settings: { } + third_party_settings: { } status: type: boolean_checkbox - weight: 2 + weight: 3 region: content settings: display_label: true third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 3 + weight: 4 region: content settings: match_operator: CONTAINS @@ -83,4 +88,3 @@ content: hidden: moderation_state: true path: true - replace_file: true diff --git a/config/install/core.entity_form_display.media.image.default.yml b/config/install/core.entity_form_display.media.image.default.yml index 45858f26..487f3a50 100644 --- a/config/install/core.entity_form_display.media.image.default.yml +++ b/config/install/core.entity_form_display.media.image.default.yml @@ -18,13 +18,13 @@ mode: default content: created: type: datetime_timestamp - weight: 4 + weight: 5 region: content settings: { } third_party_settings: { } field_body: type: text_textarea_with_summary - weight: 8 + weight: 9 region: content settings: rows: 9 @@ -44,14 +44,14 @@ content: third_party_settings: { } field_search_exclude: type: boolean_checkbox - weight: 7 + weight: 8 region: content settings: display_label: true third_party_settings: { } field_tags: type: entity_reference_autocomplete_tags - weight: 5 + weight: 6 region: content settings: match_operator: CONTAINS @@ -67,16 +67,21 @@ content: size: 60 placeholder: '' third_party_settings: { } + replace_file: + weight: 2 + region: content + settings: { } + third_party_settings: { } status: type: boolean_checkbox - weight: 2 + weight: 3 region: content settings: display_label: true third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 3 + weight: 4 region: content settings: match_operator: CONTAINS @@ -87,4 +92,3 @@ content: hidden: moderation_state: true path: true - replace_file: true diff --git a/config/install/core.entity_form_display.media.video.default.yml b/config/install/core.entity_form_display.media.video.default.yml index 10ec80db..ea603d92 100644 --- a/config/install/core.entity_form_display.media.video.default.yml +++ b/config/install/core.entity_form_display.media.video.default.yml @@ -18,7 +18,7 @@ mode: default content: created: type: datetime_timestamp - weight: 3 + weight: 4 region: content settings: { } third_party_settings: { } @@ -48,7 +48,7 @@ content: third_party_settings: { } field_tags: type: entity_reference_autocomplete_tags - weight: 5 + weight: 6 region: content settings: match_operator: CONTAINS @@ -72,16 +72,21 @@ content: size: 60 placeholder: '' third_party_settings: { } + replace_file: + weight: 2 + region: content + settings: { } + third_party_settings: { } status: type: boolean_checkbox - weight: 4 + weight: 5 region: content settings: display_label: true third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 2 + weight: 3 region: content settings: match_operator: CONTAINS @@ -92,4 +97,3 @@ content: hidden: moderation_state: true path: true - replace_file: true diff --git a/config/install/views.view.files.yml b/config/install/views.view.files.yml index 85912d8b..b437828f 100644 --- a/config/install/views.view.files.yml +++ b/config/install/views.view.files.yml @@ -463,6 +463,59 @@ display: format_plural_string: !!binary MSBwbGFjZQNAY291bnQgcGxhY2Vz prefix: '' suffix: '' + delete_file: + id: delete_file + table: file_managed + field: delete_file + relationship: none + group_type: group + admin_label: '' + entity_type: file + plugin_id: entity_link_delete + label: 'Link to delete File' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + text: delete + output_url_as_text: false + absolute: false pager: type: mini options: