diff --git a/recipes/drupal_cms_privacy_basic/composer.json b/recipes/drupal_cms_privacy_basic/composer.json index d9b2b192e471c4110724f7b3225e0678bf09f3e4..7870074ebd672559031e71a9963d41b4b2a92050 100644 --- a/recipes/drupal_cms_privacy_basic/composer.json +++ b/recipes/drupal_cms_privacy_basic/composer.json @@ -5,6 +5,7 @@ "version": "dev-main", "require": { "drupal/core": ">=10.3", - "drupal/klaro": "3.x-dev" + "drupal/klaro": "3.x-dev", + "drupal/menu_link_attributes": "^1.5" } } diff --git a/recipes/drupal_cms_privacy_basic/content/menu_link_content/my-privacy-settings.yml b/recipes/drupal_cms_privacy_basic/content/menu_link_content/my-privacy-settings.yml new file mode 100644 index 0000000000000000000000000000000000000000..da9c1643054e01fa5aa4627ca4ae9077982e2610 --- /dev/null +++ b/recipes/drupal_cms_privacy_basic/content/menu_link_content/my-privacy-settings.yml @@ -0,0 +1,38 @@ +_meta: + version: '1.0' + entity_type: menu_link_content + uuid: d7f4f1b2-af94-46b8-ac63-a8a5b14fb0f5 + bundle: menu_link_content + default_langcode: en +default: + enabled: + - + value: true + title: + - + value: 'My privacy settings' + menu_name: + - + value: footer + link: + - + uri: 'internal:#' + title: '' + options: + attributes: + rel: open-consent-manager + external: + - + value: false + rediscover: + - + value: true + weight: + - + value: 0 + expanded: + - + value: false + revision_translation_affected: + - + value: true diff --git a/recipes/drupal_cms_privacy_basic/recipe.yml b/recipes/drupal_cms_privacy_basic/recipe.yml index 67285751edf311ef006f0a5c51f604722affb88b..4c5cd7d80f1667501a72656458e39649d0254018 100644 --- a/recipes/drupal_cms_privacy_basic/recipe.yml +++ b/recipes/drupal_cms_privacy_basic/recipe.yml @@ -6,6 +6,7 @@ recipes: - core/recipes/page_content_type install: - klaro + - menu_link_attributes - menu_link_content config: strict: false @@ -17,12 +18,19 @@ config: klaro.settings: simpleConfigUpdate: auto_decorate_final_html: true + library.group_by_purpose: true + library.cookie_expires_after_days: 30 klaro.texts: simpleConfigUpdate: consentModal.privacyPolicy.url: 'internal:/privacy-policy' klaro.klaro_app.cms: simpleConfigUpdate: label: 'Drupal CMS' + menu_link_attributes.config: + simpleConfigUpdate: + attributes.rel: + label: Relationship + description: 'The "rel" attribute specifies the relationship between the current document and the linked document.' user.role.anonymous: grantPermission: 'use klaro' user.role.authenticated: