-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from UN-OCHA/berliner/HPC-9945
HPC-9945: Add settings for promotable and full width to multi column interactive content
- Loading branch information
Showing
15 changed files
with
291 additions
and
60 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
14 changes: 14 additions & 0 deletions
14
config/core.entity_view_display.paragraph.interactive_content_2_columns.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,14 @@ | ||
uuid: 4ccfb4b9-f82a-4e70-ad8a-953d448c90e2 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.interactive_content_2_columns.field_full_width | ||
- paragraphs.paragraphs_type.interactive_content_2_columns | ||
id: paragraph.interactive_content_2_columns.default | ||
targetEntityType: paragraph | ||
bundle: interactive_content_2_columns | ||
mode: default | ||
content: { } | ||
hidden: | ||
field_full_width: true |
32 changes: 32 additions & 0 deletions
32
config/field.field.paragraph.interactive_content_2_columns.field_full_width.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 @@ | ||
uuid: 6e0f7d23-ee57-41e0-8d62-f08316679e46 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_full_width | ||
- paragraphs.paragraphs_type.interactive_content_2_columns | ||
module: | ||
- field_config_cardinality | ||
third_party_settings: | ||
field_config_cardinality: | ||
cardinality_config: '1' | ||
cardinality_label_config: false | ||
unlimited_not_required: '' | ||
limited_not_required: '' | ||
limited_required: '' | ||
id: paragraph.interactive_content_2_columns.field_full_width | ||
field_name: field_full_width | ||
entity_type: paragraph | ||
bundle: interactive_content_2_columns | ||
label: 'Display at full width?' | ||
description: 'If checked, the interactive content will be shown at full-width. Otherwise it will be restricted to same width as the surrounding text content.' | ||
required: false | ||
translatable: false | ||
default_value: | ||
- | ||
value: 0 | ||
default_value_callback: '' | ||
settings: | ||
on_label: 'Yes, full width' | ||
off_label: 'No, align with content' | ||
field_type: boolean |
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
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
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
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
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
10 changes: 10 additions & 0 deletions
10
html/modules/custom/ncms_paragraphs/src/Entity/NcmsParagraphGeneric.php
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,10 @@ | ||
<?php | ||
|
||
namespace Drupal\ncms_paragraphs\Entity; | ||
|
||
/** | ||
* Entity class for paragraphs of type interactive_content. | ||
*/ | ||
class NcmsParagraphGeneric extends NcmsParagraphBase { | ||
|
||
} |
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
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.