-
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.
chore(SLB-512): merging feat/SLB-512--taxonomy-filters-content-hub - dev
- Loading branch information
Showing
71 changed files
with
1,218 additions
and
101 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
29 changes: 29 additions & 0 deletions
29
apps/cms/config/sync/field.field.node.page.field_content_hub_terms.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 @@ | ||
uuid: 7d302dca-53f0-4144-89a6-fc5d6aa7b212 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_content_hub_terms | ||
- node.type.page | ||
- taxonomy.vocabulary.content_hub | ||
id: node.page.field_content_hub_terms | ||
field_name: field_content_hub_terms | ||
entity_type: node | ||
bundle: page | ||
label: 'Content Hub Terms' | ||
description: 'Tag the content to help with filtering on the content hub page.' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:taxonomy_term' | ||
handler_settings: | ||
target_bundles: | ||
content_hub: content_hub | ||
sort: | ||
field: name | ||
direction: asc | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
20 changes: 20 additions & 0 deletions
20
apps/cms/config/sync/field.storage.node.field_content_hub_terms.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 @@ | ||
uuid: 56980077-3ced-49ce-9c99-7665e3d42507 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
- taxonomy | ||
id: node.field_content_hub_terms | ||
field_name: field_content_hub_terms | ||
entity_type: node | ||
type: entity_reference | ||
settings: | ||
target_type: taxonomy_term | ||
module: core | ||
locked: false | ||
cardinality: -1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
16 changes: 16 additions & 0 deletions
16
apps/cms/config/sync/language.content_settings.taxonomy_term.content_hub.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,16 @@ | ||
uuid: 61d33149-ccaf-400e-ab9e-1dc850353772 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- taxonomy.vocabulary.content_hub | ||
module: | ||
- content_translation | ||
third_party_settings: | ||
content_translation: | ||
enabled: true | ||
id: taxonomy_term.content_hub | ||
target_entity_type_id: taxonomy_term | ||
target_bundle: content_hub | ||
default_langcode: site_default | ||
language_alterable: true |
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 @@ | ||
uuid: c2b84fb1-39ac-4c9a-81a9-88f5973790aa | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
name: 'Content Hub' | ||
vid: content_hub | ||
description: 'Tag content for filtering on the content hub.' | ||
weight: 0 | ||
new_revision: false |
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
apps/cms/patches/contrib/graphql_directives/extract_term_label.patch
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 @@ | ||
diff --git a/src/Plugin/GraphQL/DataProducer/DrupalView.php b/src/Plugin/GraphQL/DataProducer/DrupalView.php | ||
index 43ca191ec..5554e126d 100644 | ||
--- a/src/Plugin/GraphQL/DataProducer/DrupalView.php | ||
+++ b/src/Plugin/GraphQL/DataProducer/DrupalView.php | ||
@@ -99,6 +99,9 @@ public function resolve(string $id, ?string $args, FieldContext $context): array | ||
foreach (Element::children($form) as $key) { | ||
if (isset($form[$key]['#options'])) { | ||
foreach ($form[$key]['#options'] as $value => $label) { | ||
+ if (is_object($label) && isset($label->option)) { | ||
+ $label = $label->option; | ||
+ } | ||
$filters[$key][] = [ | ||
'value' => (string)$value, | ||
'label' => (string)$label, |
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
Oops, something went wrong.