From 1da4fed2b9885e9f78dc73c235e8ebe73c84296d Mon Sep 17 00:00:00 2001
From: xjm <xjm@65776.no-reply.drupal.org>
Date: Sun, 6 Aug 2017 21:48:12 -0500
Subject: [PATCH] Issue #2895382 by Wim Leers, chr.fritsch, xjm, marcoscano,
 dawehner, larowlan: Hide label, thumbnail, etc. for default display of media
 file and image references

---
 ...entity_view_display.media.file.default.yml | 36 +++--------------
 ...ntity_view_display.media.image.default.yml | 40 ++++---------------
 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 697f117c6e27..933b2950793e 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 e541d7f784e3..fe01f37b6f81 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
-- 
GitLab