summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2017-08-06 21:48:12 -0500
committerxjm2017-08-06 21:48:35 -0500
commit2e2a8fb2cc533a639c795e2d75d2c3d2a9f1992a (patch)
tree4755218dbfbc6a528c19f5cd67c02e8cd0a66a9a
parentb73952b54a06b8cb61d2e8cb82b62b8c15e2e936 (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
(cherry picked from commit 1da4fed2b9885e9f78dc73c235e8ebe73c84296d)
-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