Updated "SVG" media type image styles and display modes.

This commit is contained in:
alex 2021-05-26 11:51:23 -06:00
parent ab80849b84
commit 395a374332
7 changed files with 143 additions and 1 deletions

View File

@ -3,9 +3,12 @@ status: true
dependencies:
config:
- field.field.media.svg.field_media_image_1
- image.style.large
- media.type.svg
module:
- svg_image
_core:
default_config_hash: R2Lnr2qu3jKlsRNF-TPVvVWEgZsjSlkYh0PxGjZjvnY
id: media.svg.default
targetEntityType: media
bundle: svg
@ -15,12 +18,12 @@ content:
label: visually_hidden
weight: 0
settings:
image_style: large
image_link: ''
svg_render_as_image: true
svg_attributes:
width: null
height: null
image_style: ''
third_party_settings: { }
type: image
region: content

View File

@ -0,0 +1,36 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.media_library
- field.field.media.svg.field_media_image_1
- image.style.medium
- media.type.svg
module:
- svg_image
_core:
default_config_hash: R2Lnr2qu3jKlsRNF-TPVvVWEgZsjSlkYh0PxGjZjvnY
id: media.svg.media_library
targetEntityType: media
bundle: svg
mode: media_library
content:
field_media_image_1:
label: visually_hidden
weight: 0
settings:
image_style: medium
image_link: ''
svg_render_as_image: true
svg_attributes:
width: null
height: null
third_party_settings: { }
type: image
region: content
hidden:
created: true
langcode: true
name: true
thumbnail: true
uid: true

View File

@ -0,0 +1,35 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.svg
- field.field.media.svg.field_media_image_1
- media.type.svg
module:
- svg_image
_core:
default_config_hash: R2Lnr2qu3jKlsRNF-TPVvVWEgZsjSlkYh0PxGjZjvnY
id: media.svg.svg
targetEntityType: media
bundle: svg
mode: svg
content:
field_media_image_1:
label: visually_hidden
weight: 0
settings:
image_style: ''
image_link: ''
svg_attributes:
width: null
height: null
svg_render_as_image: false
third_party_settings: { }
type: image
region: content
hidden:
created: true
langcode: true
name: true
thumbnail: true
uid: true

View File

@ -0,0 +1,36 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.svg_icon
- field.field.media.svg.field_media_image_1
- image.style.svg_icon
- media.type.svg
module:
- svg_image
_core:
default_config_hash: R2Lnr2qu3jKlsRNF-TPVvVWEgZsjSlkYh0PxGjZjvnY
id: media.svg.svg_icon
targetEntityType: media
bundle: svg
mode: svg_icon
content:
field_media_image_1:
label: visually_hidden
weight: 0
settings:
image_style: svg_icon
image_link: ''
svg_attributes:
width: null
height: 14
svg_render_as_image: false
third_party_settings: { }
type: image
region: content
hidden:
created: true
langcode: true
name: true
thumbnail: true
uid: true

View File

@ -0,0 +1,9 @@
langcode: en
status: true
dependencies:
module:
- media
id: media.svg
label: SVG
targetEntityType: media
cache: true

View File

@ -0,0 +1,9 @@
langcode: en
status: true
dependencies:
module:
- media
id: media.svg_icon
label: 'SVG icon'
targetEntityType: media
cache: true

View File

@ -0,0 +1,14 @@
langcode: en
status: true
dependencies: { }
name: svg_icon
label: 'SVG icon'
effects:
0749977f-bb6a-4a8f-9d66-b6d5c6551fec:
uuid: 0749977f-bb6a-4a8f-9d66-b6d5c6551fec
id: image_scale
weight: 1
data:
width: 260
height: null
upscale: false