summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2017-08-07 02:48:12 (GMT)
committerxjm2017-08-07 02:48:12 (GMT)
commit1da4fed2b9885e9f78dc73c235e8ebe73c84296d (patch)
tree3230ae3d9f26d4abde908cbf7d5aed8d59269897
parentf589b8800a41fe06cb467a39bfbf6210820fc8cd (diff)
Issue #2895382 by Wim Leers, chr.fritsch, xjm, marcoscano, dawehner, larowlan: Hide label, thumbnail, etc. for default display of media file and image references
-rw-r--r--core/modules/media/config/install/core.entity_view_display.media.file.default.yml36
-rw-r--r--core/modules/media/config/install/core.entity_view_display.media.image.default.yml40
2 files changed, 13 insertions, 63 deletions
diff --git a/core/modules/media/config/install/core.entity_view_display.media.file.default.yml b/core/modules/media/config/install/core.entity_view_display.media.file.default.yml
index 697f117..933b295 100644
--- a/core/modules/media/config/install/core.entity_view_display.media.file.default.yml
+++ b/core/modules/media/config/install/core.entity_view_display.media.file.default.yml
@@ -3,48 +3,22 @@ status: true
dependencies:
config:
- field.field.media.file.field_media_file
- - image.style.thumbnail
- media.type.file
module:
- file
- - image
- - user
id: media.file.default
targetEntityType: media
bundle: file
mode: default
content:
- created:
- label: hidden
- type: timestamp
- weight: 0
- region: content
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
field_media_file:
- label: above
+ label: visually_hidden
settings: { }
third_party_settings: { }
type: file_default
- weight: 6
- region: content
- thumbnail:
- type: image
- weight: 5
- label: hidden
- settings:
- image_style: thumbnail
- image_link: ''
- region: content
- third_party_settings: { }
- uid:
- label: hidden
- type: author
weight: 0
region: content
- settings: { }
- third_party_settings: { }
-hidden: { }
+hidden:
+ created: true
+ thumbnail: true
+ uid: true
diff --git a/core/modules/media/config/install/core.entity_view_display.media.image.default.yml b/core/modules/media/config/install/core.entity_view_display.media.image.default.yml
index e541d7f..fe01f37 100644
--- a/core/modules/media/config/install/core.entity_view_display.media.image.default.yml
+++ b/core/modules/media/config/install/core.entity_view_display.media.image.default.yml
@@ -3,49 +3,25 @@ status: true
dependencies:
config:
- field.field.media.image.field_media_image
- - image.style.thumbnail
+ - image.style.medium
- media.type.image
module:
- image
- - user
id: media.image.default
targetEntityType: media
bundle: image
mode: default
content:
- created:
- label: hidden
- type: timestamp
- weight: 0
- region: content
- settings:
- date_format: medium
- custom_date_format: ''
- timezone: ''
- third_party_settings: { }
field_media_image:
- label: above
+ label: visually_hidden
settings:
- image_style: ''
- image_link: ''
+ image_style: medium
+ image_link: file
third_party_settings: { }
type: image
- weight: 6
- region: content
- thumbnail:
- type: image
- weight: 5
- label: hidden
- settings:
- image_style: thumbnail
- image_link: ''
- region: content
- third_party_settings: { }
- uid:
- label: hidden
- type: author
weight: 0
region: content
- settings: { }
- third_party_settings: { }
-hidden: { }
+hidden:
+ created: true
+ thumbnail: true
+ uid: true