Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

SDPA-5822: Add media name for audio and video embed. #71

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions config/install/core.entity_view_display.media.audio.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- media.type.audio
module:
- file
- smart_trim
- svg_image
- text
- user
Expand Down Expand Up @@ -116,6 +117,23 @@ content:
label: above
settings: { }
third_party_settings: { }
name:
type: smart_trim
weight: 13
region: content
label: hidden
settings:
trim_length: 600
trim_type: chars
trim_suffix: ''
wrap_output: false
wrap_class: trimmed
more_link: false
more_class: more-link
more_text: More
summary_handler: full
trim_options: { }
third_party_settings: { }
thumbnail:
type: image
weight: 2
Expand All @@ -124,8 +142,8 @@ content:
image_style: thumbnail
image_link: ''
svg_attributes:
width: ''
height: ''
width: null
height: null
svg_render_as_image: true
region: content
third_party_settings: { }
Expand All @@ -136,5 +154,4 @@ content:
region: content
settings: { }
third_party_settings: { }
hidden:
name: true
hidden: { }
21 changes: 19 additions & 2 deletions config/install/core.entity_view_display.media.audio.embedded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,38 @@ dependencies:
- media.type.audio
module:
- media_entity_audio
- smart_trim
id: media.audio.embedded
targetEntityType: media
bundle: audio
mode: embedded
content:
field_media_file:
weight: 6
weight: 0
label: hidden
settings:
provide_download_link: '1'
audio_attributes: controls
third_party_settings: { }
type: audio_stream_html5
region: content
name:
type: smart_trim
weight: 1
region: content
label: hidden
settings:
trim_length: 600
trim_type: chars
trim_suffix: ''
wrap_output: false
wrap_class: trimmed
more_link: false
more_class: more-link
more_text: More
summary_handler: full
trim_options: { }
third_party_settings: { }
hidden:
created: true
field_license_type: true
Expand All @@ -40,6 +58,5 @@ hidden:
field_media_summary: true
field_media_topic: true
field_media_transcript: true
name: true
thumbnail: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ dependencies:
- media.type.audio
module:
- media_entity_audio
- smart_trim
id: media.audio.embedded_with_transcript
targetEntityType: media
bundle: audio
mode: embedded_with_transcript
content:
field_media_file:
weight: 0
weight: 1
label: hidden
settings:
provide_download_link: '1'
Expand All @@ -30,12 +31,29 @@ content:
type: audio_stream_html5
region: content
field_media_transcript:
weight: 1
weight: 2
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
name:
type: smart_trim
weight: 0
region: content
label: hidden
settings:
trim_length: 600
trim_type: chars
trim_suffix: ''
wrap_output: false
wrap_class: trimmed
more_link: false
more_class: more-link
more_text: More
summary_handler: full
trim_options: { }
third_party_settings: { }
hidden:
created: true
field_license_type: true
Expand All @@ -46,6 +64,5 @@ hidden:
field_media_show_transcript: true
field_media_summary: true
field_media_topic: true
name: true
thumbnail: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,29 @@ dependencies:
- image.style.thumbnail
- media.type.audio
module:
- smart_trim
- svg_image
id: media.audio.media_browser_preview
targetEntityType: media
bundle: audio
mode: media_browser_preview
content:
name:
type: string
type: smart_trim
weight: 1
region: content
label: visually_hidden
label: hidden
settings:
link_to_entity: false
trim_length: 600
trim_type: chars
trim_suffix: ''
wrap_output: false
wrap_class: trimmed
more_link: false
more_class: more-link
more_text: More
summary_handler: full
trim_options: { }
third_party_settings: { }
thumbnail:
type: image
Expand All @@ -36,6 +46,10 @@ content:
settings:
image_style: thumbnail
image_link: ''
svg_attributes:
width: null
height: null
svg_render_as_image: true
region: content
third_party_settings: { }
hidden:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
- field.field.media.embedded_video.field_media_video_embed_field
- media.type.embedded_video
module:
- smart_trim
- text
- user
- video_embed_field
Expand Down Expand Up @@ -115,6 +116,23 @@ content:
third_party_settings: { }
type: video_embed_field_video
region: content
name:
type: smart_trim
weight: 12
region: content
label: hidden
settings:
trim_length: 600
trim_type: chars
trim_suffix: ''
wrap_output: false
wrap_class: trimmed
more_link: false
more_class: more-link
more_text: More
summary_handler: full
trim_options: { }
third_party_settings: { }
uid:
label: hidden
type: author
Expand All @@ -123,5 +141,4 @@ content:
settings: { }
third_party_settings: { }
hidden:
name: true
thumbnail: true
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
- field.field.media.embedded_video.field_media_video_embed_field
- media.type.embedded_video
module:
- smart_trim
- video_embed_field
id: media.embedded_video.embedded
targetEntityType: media
Expand All @@ -31,6 +32,23 @@ content:
third_party_settings: { }
type: video_embed_field_video
region: content
name:
type: smart_trim
weight: 1
region: content
label: hidden
settings:
trim_length: 600
trim_type: chars
trim_suffix: ''
wrap_output: false
wrap_class: trimmed
more_link: false
more_class: more-link
more_text: More
summary_handler: full
trim_options: { }
third_party_settings: { }
hidden:
created: true
field_license_type: true
Expand All @@ -42,6 +60,5 @@ hidden:
field_media_summary: true
field_media_topic: true
field_media_transcript: true
name: true
thumbnail: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
- field.field.media.embedded_video.field_media_video_embed_field
- media.type.embedded_video
module:
- smart_trim
- video_embed_field
id: media.embedded_video.embedded_with_transcript
targetEntityType: media
Expand All @@ -39,6 +40,23 @@ content:
third_party_settings: { }
type: video_embed_field_video
region: content
name:
type: smart_trim
weight: 2
region: content
label: hidden
settings:
trim_length: 600
trim_type: chars
trim_suffix: ''
wrap_output: false
wrap_class: trimmed
more_link: false
more_class: more-link
more_text: More
summary_handler: full
trim_options: { }
third_party_settings: { }
hidden:
created: true
field_license_type: true
Expand All @@ -49,6 +67,5 @@ hidden:
field_media_summary: true
field_media_topic: true
field_media_transcript: true
name: true
thumbnail: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,29 @@ dependencies:
- image.style.thumbnail
- media.type.embedded_video
module:
- smart_trim
- svg_image
id: media.embedded_video.media_browser_preview
targetEntityType: media
bundle: embedded_video
mode: media_browser_preview
content:
name:
type: string
type: smart_trim
weight: 1
region: content
label: visually_hidden
label: hidden
settings:
link_to_entity: false
trim_length: 600
trim_type: chars
trim_suffix: ''
wrap_output: false
wrap_class: trimmed
more_link: false
more_class: more-link
more_text: More
summary_handler: full
trim_options: { }
third_party_settings: { }
thumbnail:
type: image
Expand All @@ -36,6 +46,10 @@ content:
settings:
image_style: thumbnail
image_link: ''
svg_attributes:
width: null
height: null
svg_render_as_image: true
region: content
third_party_settings: { }
hidden:
Expand Down
1 change: 1 addition & 0 deletions tide_media.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies:
- svg_image:svg_image
- video_embed_field:video_embed_field
- video_embed_field:video_embed_media
- smart_trim:smart_trim
sonnykt marked this conversation as resolved.
Show resolved Hide resolved
config_devel:
install:
- core.entity_form_display.media.audio.default
Expand Down
Loading