Skip to content

Commit

Permalink
Merge pull request #749 from sarongebre/media-block-704
Browse files Browse the repository at this point in the history
Simple Media block 704
  • Loading branch information
ericras authored Jul 8, 2024
2 parents 213ad9a + 7d26299 commit 6598faa
Show file tree
Hide file tree
Showing 170 changed files with 2,598 additions and 42 deletions.
8 changes: 8 additions & 0 deletions config/sync/block_content.type.simple_media.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: e92dfd42-bda9-467d-b7c6-86f9a7d7af5d
langcode: en
status: true
dependencies: { }
id: simple_media
label: 'Simple media '
revision: 1
description: 'A block that allows the addition of images, remote videos, and more.'
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
uuid: 286d8119-9e06-47ae-bf58-305e7a8058f1
langcode: en
status: true
dependencies:
config:
- block_content.type.simple_media
- field.field.block_content.simple_media.b_simple_media_animation
- field.field.block_content.simple_media.b_simple_media_aspect_ratio
- field.field.block_content.simple_media.b_simple_media_frame_or_shadow
- field.field.block_content.simple_media.b_simple_media_media
- field.field.block_content.simple_media.b_simple_media_shadow_position
- field.field.block_content.simple_media.b_simple_media_shadow_style
module:
- field_group
- media_library
third_party_settings:
field_group:
group_media_style:
children:
- b_simple_media_frame_or_shadow
- b_simple_media_shadow_position
- b_simple_media_shadow_style
label: Style
region: content
parent_name: ''
weight: 4
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: false
id: ''
description: ''
required_fields: true
id: block_content.simple_media.default
targetEntityType: block_content
bundle: simple_media
mode: default
content:
b_simple_media_animation:
type: options_select
weight: 5
region: content
settings: { }
third_party_settings: { }
b_simple_media_aspect_ratio:
type: options_select
weight: 3
region: content
settings: { }
third_party_settings: { }
b_simple_media_frame_or_shadow:
type: options_select
weight: 26
region: content
settings: { }
third_party_settings: { }
b_simple_media_media:
type: media_library_widget
weight: 1
region: content
settings:
media_types: { }
third_party_settings: { }
b_simple_media_shadow_position:
type: options_select
weight: 28
region: content
settings: { }
third_party_settings: { }
b_simple_media_shadow_style:
type: options_select
weight: 29
region: content
settings: { }
third_party_settings: { }
info:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden: { }
3 changes: 2 additions & 1 deletion config/sync/core.entity_form_display.node.major.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -531,4 +531,5 @@ content:
region: content
settings: { }
third_party_settings: { }
hidden: { }
hidden:
entitygroupfield: true
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,5 @@ content:
region: content
settings: { }
third_party_settings: { }
hidden: { }
hidden:
entitygroupfield: true
6 changes: 0 additions & 6 deletions config/sync/core.entity_form_display.node.person.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ content:
region: content
settings: { }
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 15
region: content
settings: { }
third_party_settings: { }
entitygroupfield:
type: entitygroupfield_select_widget
weight: 15
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
uuid: c9a3c43d-b04e-4b54-8202-ac05d3797fb5
langcode: en
status: true
dependencies:
config:
- block_content.type.simple_media
- field.field.block_content.simple_media.b_simple_media_animation
- field.field.block_content.simple_media.b_simple_media_aspect_ratio
- field.field.block_content.simple_media.b_simple_media_frame_or_shadow
- field.field.block_content.simple_media.b_simple_media_media
- field.field.block_content.simple_media.b_simple_media_shadow_position
- field.field.block_content.simple_media.b_simple_media_shadow_style
module:
- options
id: block_content.simple_media.default
targetEntityType: block_content
bundle: simple_media
mode: default
content:
b_simple_media_animation:
type: list_key
label: hidden
settings: { }
third_party_settings: { }
weight: 11
region: content
b_simple_media_aspect_ratio:
type: list_key
label: hidden
settings: { }
third_party_settings: { }
weight: 12
region: content
b_simple_media_frame_or_shadow:
type: list_key
label: hidden
settings: { }
third_party_settings: { }
weight: 10
region: content
b_simple_media_media:
type: entity_reference_entity_view
label: hidden
settings:
view_mode: 16x9
link: false
third_party_settings: { }
weight: 6
region: content
b_simple_media_shadow_position:
type: list_key
label: hidden
settings: { }
third_party_settings: { }
weight: 8
region: content
b_simple_media_shadow_style:
type: list_key
label: hidden
settings: { }
third_party_settings: { }
weight: 9
region: content
hidden: { }
57 changes: 57 additions & 0 deletions config/sync/core.entity_view_display.media.image.16x9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
uuid: 1e481b71-b6f7-46e2-a9de-0708d04a0f9d
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.16x9
- field.field.media.image.field_media_image
- field.field.media.image.s_m_file_size
- field.field.media.image.s_m_height
- field.field.media.image.s_m_mime_type
- field.field.media.image.s_m_tags
- field.field.media.image.s_m_width
- media.type.image
- responsive_image.styles.16x9_ris
module:
- dcf_lazyload
- image_class
- layout_builder
- svg_image_responsive
third_party_settings:
layout_builder:
enabled: false
allow_custom: false
_core:
default_config_hash: K_3BWtYOHRwzf56LnqcZgduecDmBjet77Iq6J5x8lw4
id: media.image.16x9
targetEntityType: media
bundle: image
mode: 16x9
content:
field_media_image:
type: responsive_image
label: hidden
settings:
responsive_image_style: 16x9_ris
image_link: ''
svg_attributes:
width: null
height: null
svg_render_as_image: true
third_party_settings:
image_class:
class: ''
dcf_lazyload:
dcf_lazyload_enable: false
weight: 0
region: content
hidden:
created: true
name: true
s_m_file_size: true
s_m_height: true
s_m_mime_type: true
s_m_tags: true
s_m_width: true
thumbnail: true
uid: true
57 changes: 57 additions & 0 deletions config/sync/core.entity_view_display.media.image.1x1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
uuid: 19eef252-c1e4-4ca6-9d02-410e7beb033d
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.1x1
- field.field.media.image.field_media_image
- field.field.media.image.s_m_file_size
- field.field.media.image.s_m_height
- field.field.media.image.s_m_mime_type
- field.field.media.image.s_m_tags
- field.field.media.image.s_m_width
- media.type.image
- responsive_image.styles.1x1_ris
module:
- dcf_lazyload
- image_class
- layout_builder
- svg_image_responsive
third_party_settings:
layout_builder:
enabled: false
allow_custom: false
_core:
default_config_hash: K_3BWtYOHRwzf56LnqcZgduecDmBjet77Iq6J5x8lw4
id: media.image.1x1
targetEntityType: media
bundle: image
mode: 1x1
content:
field_media_image:
type: responsive_image
label: hidden
settings:
responsive_image_style: 1x1_ris
image_link: ''
svg_attributes:
width: null
height: null
svg_render_as_image: true
third_party_settings:
image_class:
class: ''
dcf_lazyload:
dcf_lazyload_enable: false
weight: 0
region: content
hidden:
created: true
name: true
s_m_file_size: true
s_m_height: true
s_m_mime_type: true
s_m_tags: true
s_m_width: true
thumbnail: true
uid: true
57 changes: 57 additions & 0 deletions config/sync/core.entity_view_display.media.image.4x3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
uuid: e61df3a5-60e3-49e0-ab9d-c7c1119bd0e7
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.4x3
- field.field.media.image.field_media_image
- field.field.media.image.s_m_file_size
- field.field.media.image.s_m_height
- field.field.media.image.s_m_mime_type
- field.field.media.image.s_m_tags
- field.field.media.image.s_m_width
- media.type.image
- responsive_image.styles.4x3_ris
module:
- dcf_lazyload
- image_class
- layout_builder
- svg_image_responsive
third_party_settings:
layout_builder:
enabled: false
allow_custom: false
_core:
default_config_hash: K_3BWtYOHRwzf56LnqcZgduecDmBjet77Iq6J5x8lw4
id: media.image.4x3
targetEntityType: media
bundle: image
mode: 4x3
content:
field_media_image:
type: responsive_image
label: hidden
settings:
responsive_image_style: 4x3_ris
image_link: ''
svg_attributes:
width: null
height: null
svg_render_as_image: true
third_party_settings:
image_class:
class: ''
dcf_lazyload:
dcf_lazyload_enable: false
weight: 0
region: content
hidden:
created: true
name: true
s_m_file_size: true
s_m_height: true
s_m_mime_type: true
s_m_tags: true
s_m_width: true
thumbnail: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ content:
weight: 0
region: content
hidden:
entitygroupfield: true
s_n_page_options: true
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ content:
region: content
hidden:
archive_page_body: true
entitygroupfield: true
s_n_page_options: true
8 changes: 7 additions & 1 deletion config/sync/core.entity_view_display.node.book.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ content:
third_party_settings: { }
weight: 100
region: content
content_moderation_control:
settings: { }
third_party_settings: { }
weight: -20
region: content
links:
weight: 101
region: content
hidden: { }
hidden:
entitygroupfield: true
Loading

0 comments on commit 6598faa

Please sign in to comment.