-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#4414) NCIDS 2 Column Updates - Image & Video
Closes #4414
- Loading branch information
1 parent
1771e89
commit 17b479c
Showing
43 changed files
with
1,607 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ov_home_landing/config/install/core.entity_form_display.paragraph.ncids_image.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- entity_browser.browser.cgov_image_browser | ||
- field.field.paragraph.ncids_image.field_image_aspect_ratio | ||
- field.field.paragraph.ncids_image.field_override_image_promotional | ||
- paragraphs.paragraphs_type.ncids_image | ||
module: | ||
- entity_browser | ||
id: paragraph.ncids_image.default | ||
targetEntityType: paragraph | ||
bundle: ncids_image | ||
mode: default | ||
content: | ||
field_image_aspect_ratio: | ||
type: options_select | ||
weight: 0 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
field_override_image_promotional: | ||
type: entity_browser_entity_reference | ||
weight: 1 | ||
region: content | ||
settings: | ||
entity_browser: cgov_image_browser | ||
field_widget_display: rendered_entity | ||
field_widget_edit: false | ||
field_widget_remove: true | ||
field_widget_replace: false | ||
open: false | ||
field_widget_display_settings: | ||
view_mode: image_reference_field_form | ||
selection_mode: selection_append | ||
third_party_settings: { } | ||
hidden: | ||
created: true | ||
status: true |
32 changes: 32 additions & 0 deletions
32
...ov_home_landing/config/install/core.entity_form_display.paragraph.ncids_video.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- entity_browser.browser.cgov_video_browser | ||
- field.field.paragraph.ncids_video.field_featured_video | ||
- paragraphs.paragraphs_type.ncids_video | ||
module: | ||
- entity_browser | ||
id: paragraph.ncids_video.default | ||
targetEntityType: paragraph | ||
bundle: ncids_video | ||
mode: default | ||
content: | ||
field_featured_video: | ||
type: entity_browser_entity_reference | ||
weight: 0 | ||
region: content | ||
settings: | ||
entity_browser: cgov_video_browser | ||
field_widget_display: rendered_entity | ||
field_widget_edit: false | ||
field_widget_remove: true | ||
field_widget_replace: false | ||
open: false | ||
field_widget_display_settings: | ||
view_mode: entity_browser_selected_entity | ||
selection_mode: selection_append | ||
third_party_settings: { } | ||
hidden: | ||
created: true | ||
status: true |
31 changes: 31 additions & 0 deletions
31
...ov_home_landing/config/install/core.entity_view_display.paragraph.ncids_image.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.ncids_image.field_image_aspect_ratio | ||
- field.field.paragraph.ncids_image.field_override_image_promotional | ||
- paragraphs.paragraphs_type.ncids_image | ||
module: | ||
- options | ||
id: paragraph.ncids_image.default | ||
targetEntityType: paragraph | ||
bundle: ncids_image | ||
mode: default | ||
content: | ||
field_image_aspect_ratio: | ||
type: list_default | ||
label: above | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 5 | ||
region: content | ||
field_override_image_promotional: | ||
type: entity_reference_entity_view | ||
label: hidden | ||
settings: | ||
view_mode: ncids_aspect_ratio_16_9 | ||
link: false | ||
third_party_settings: { } | ||
weight: 4 | ||
region: content | ||
hidden: { } |
21 changes: 21 additions & 0 deletions
21
...ov_home_landing/config/install/core.entity_view_display.paragraph.ncids_video.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.ncids_video.field_featured_video | ||
- paragraphs.paragraphs_type.ncids_video | ||
id: paragraph.ncids_video.default | ||
targetEntityType: paragraph | ||
bundle: ncids_video | ||
mode: default | ||
content: | ||
field_featured_video: | ||
type: entity_reference_entity_view | ||
label: hidden | ||
settings: | ||
view_mode: video_display_ncids_video | ||
link: false | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: { } |
20 changes: 20 additions & 0 deletions
20
...ome_landing/config/install/field.field.paragraph.ncids_image.field_image_aspect_ratio.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_image_aspect_ratio | ||
- paragraphs.paragraphs_type.ncids_image | ||
module: | ||
- options | ||
id: paragraph.ncids_image.field_image_aspect_ratio | ||
field_name: field_image_aspect_ratio | ||
entity_type: paragraph | ||
bundle: ncids_image | ||
label: 'Image Crop Display' | ||
description: 'Sets the aspect ratio for the image at 1:1, 4:3, or 16:9.' | ||
required: true | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: list_string |
28 changes: 28 additions & 0 deletions
28
...ing/config/install/field.field.paragraph.ncids_image.field_override_image_promotional.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_override_image_promotional | ||
- media.type.cgov_image | ||
- paragraphs.paragraphs_type.ncids_image | ||
id: paragraph.ncids_image.field_override_image_promotional | ||
field_name: field_override_image_promotional | ||
entity_type: paragraph | ||
bundle: ncids_image | ||
label: 'Promotional Image' | ||
description: 'Image with caption to be added to the 2 Column Layout' | ||
required: true | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:media' | ||
handler_settings: | ||
target_bundles: | ||
cgov_image: cgov_image | ||
sort: | ||
field: _none | ||
direction: ASC | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ov_home_landing/config/install/field.field.paragraph.ncids_video.field_featured_video.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_featured_video | ||
- media.type.cgov_video | ||
- paragraphs.paragraphs_type.ncids_video | ||
id: paragraph.ncids_video.field_featured_video | ||
field_name: field_featured_video | ||
entity_type: paragraph | ||
bundle: ncids_video | ||
label: 'Featured Video' | ||
description: 'Video with caption to be added to the 2 Column Layout' | ||
required: true | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: cgov_all_selection | ||
handler_settings: | ||
target_bundles: | ||
cgov_video: cgov_video | ||
sort: | ||
field: _none | ||
direction: ASC | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
29 changes: 29 additions & 0 deletions
29
...tom/cgov_home_landing/config/install/field.storage.paragraph.field_image_aspect_ratio.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- options | ||
- paragraphs | ||
id: paragraph.field_image_aspect_ratio | ||
field_name: field_image_aspect_ratio | ||
entity_type: paragraph | ||
type: list_string | ||
settings: | ||
allowed_values: | ||
- | ||
value: ncids_aspect_ratio_1_1 | ||
label: 1x1 | ||
- | ||
value: ncids_aspect_ratio_4_3 | ||
label: 4x3 | ||
- | ||
value: ncids_aspect_ratio_16_9 | ||
label: 16x9 | ||
allowed_values_function: '' | ||
module: options | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
9 changes: 9 additions & 0 deletions
9
...odules/custom/cgov_home_landing/config/install/paragraphs.paragraphs_type.ncids_image.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: ncids_image | ||
label: 'NCIDS Image' | ||
icon_uuid: null | ||
icon_default: null | ||
description: 'Image and caption to be displayed on Mini Landing Page' | ||
behavior_plugins: { } |
9 changes: 9 additions & 0 deletions
9
...odules/custom/cgov_home_landing/config/install/paragraphs.paragraphs_type.ncids_video.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: ncids_video | ||
label: 'NCIDS Video' | ||
icon_uuid: null | ||
icon_default: null | ||
description: 'Video and caption to be displayed on Mini Landing Page' | ||
behavior_plugins: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.