From 9c0da77c0c693702c12edf86b933e76fa0a1f283 Mon Sep 17 00:00:00 2001 From: mmyllynen <4696381+dire@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:20:15 +0300 Subject: [PATCH] UHF-8679: Added news item alias pattern for other languagues. --- ...auto.pattern.news_item_other_languages.yml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 conf/cmi/pathauto.pattern.news_item_other_languages.yml diff --git a/conf/cmi/pathauto.pattern.news_item_other_languages.yml b/conf/cmi/pathauto.pattern.news_item_other_languages.yml new file mode 100644 index 000000000..f2db0c8cd --- /dev/null +++ b/conf/cmi/pathauto.pattern.news_item_other_languages.yml @@ -0,0 +1,43 @@ +uuid: 49345a03-e90c-4cc3-9416-c42d55b08908 +langcode: en +status: true +dependencies: + module: + - language + - node +id: news_item_other_languages +label: 'News item | other languages' +type: 'canonical_entities:node' +pattern: 'news/[node:short-title]' +selection_criteria: + 846ebfb3-db99-49ae-995f-bd9c76421de7: + id: 'entity_bundle:node' + negate: false + uuid: 846ebfb3-db99-49ae-995f-bd9c76421de7 + context_mapping: + node: node + bundles: + news_item: news_item + e9eeca0d-99dd-4382-b774-038884ec062f: + id: language + negate: false + uuid: e9eeca0d-99dd-4382-b774-038884ec062f + context_mapping: + language: 'node:langcode:language' + langcodes: + de: de + fr: fr + ru: ru + uk: uk + ar: ar + et: et + fa: fa + es: es + so: so + se: se + zh-hans: zh-hans +selection_logic: and +weight: -10 +relationships: + 'node:langcode:language': + label: Language