From dd7773c9f69845f8fa41e11caf03831d6088430b Mon Sep 17 00:00:00 2001 From: Mikkel Ricky Date: Thu, 8 Jul 2021 15:17:48 +0200 Subject: [PATCH] LOOP-989: Added pathauto and configuration --- composer.json | 1 + composer.lock | 163 +++++++++++++++++- config/sync/core.extension.yml | 3 + ...content_settings.path_alias.path_alias.yml | 13 ++ ...stem.action.pathauto_update_alias_node.yml | 1 + ...stem.action.pathauto_update_alias_user.yml | 1 + .../sync/pathauto.pattern.os2loop_content.yml | 14 ++ .../pathauto.pattern.os2loop_taxonomy.yml | 14 ++ config/sync/pathauto.settings.yml | 52 ++++++ ...stem.action.pathauto_update_alias_node.yml | 16 ++ ...stem.action.pathauto_update_alias_user.yml | 16 ++ 11 files changed, 293 insertions(+), 1 deletion(-) create mode 100644 config/sync/language.content_settings.path_alias.path_alias.yml create mode 100644 config/sync/language/da/system.action.pathauto_update_alias_node.yml create mode 100644 config/sync/language/da/system.action.pathauto_update_alias_user.yml create mode 100644 config/sync/pathauto.pattern.os2loop_content.yml create mode 100644 config/sync/pathauto.pattern.os2loop_taxonomy.yml create mode 100644 config/sync/pathauto.settings.yml create mode 100644 config/sync/system.action.pathauto_update_alias_node.yml create mode 100644 config/sync/system.action.pathauto_update_alias_user.yml diff --git a/composer.json b/composer.json index b3893dcb1..2c631e8d1 100644 --- a/composer.json +++ b/composer.json @@ -63,6 +63,7 @@ "drupal/openid_connect": "^1.0", "drupal/openid_connect_windows_aad": "^1.3", "drupal/paragraphs": "^1.12", + "drupal/pathauto": "^1.8", "drupal/samlauth": "~3.2.0", "drupal/search_api": "^1.19", "drupal/search_api_autocomplete": "^1.4", diff --git a/composer.lock b/composer.lock index df8cd1f88..dee9d880d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "48407be62fcdb4cefaaa90c53cf1ec30", + "content-hash": "a297d0da3ba59a611a73ecec1a645185", "packages": [ { "name": "alchemy/zippy", @@ -2872,6 +2872,99 @@ "issues": "https://www.drupal.org/project/issues/csv_serialization" } }, + { + "name": "drupal/ctools", + "version": "3.7.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/ctools.git", + "reference": "8.x-3.7" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/ctools-8.x-3.7.zip", + "reference": "8.x-3.7", + "shasum": "b11c0981a1d2ab3cc9e8e614a337d8e2a2a70c0e" + }, + "require": { + "drupal/core": "^8.8 || ^9" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-3.7", + "datestamp": "1623860918", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + }, + "branch-alias": { + "dev-8.x-3.x": "3.x-dev" + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Kris Vanderwater (EclipseGc)", + "homepage": "https://www.drupal.org/u/eclipsegc", + "role": "Maintainer" + }, + { + "name": "Jakob Perry (japerry)", + "homepage": "https://www.drupal.org/u/japerry", + "role": "Maintainer" + }, + { + "name": "Tim Plunkett (tim.plunkett)", + "homepage": "https://www.drupal.org/u/timplunkett", + "role": "Maintainer" + }, + { + "name": "James Gilliland (neclimdul)", + "homepage": "https://www.drupal.org/u/neclimdul", + "role": "Maintainer" + }, + { + "name": "Daniel Wehner (dawehner)", + "homepage": "https://www.drupal.org/u/dawehner", + "role": "Maintainer" + }, + { + "name": "joelpittet", + "homepage": "https://www.drupal.org/user/160302" + }, + { + "name": "merlinofchaos", + "homepage": "https://www.drupal.org/user/26979" + }, + { + "name": "neclimdul", + "homepage": "https://www.drupal.org/user/48673" + }, + { + "name": "sdboyer", + "homepage": "https://www.drupal.org/user/146719" + }, + { + "name": "sun", + "homepage": "https://www.drupal.org/user/54136" + }, + { + "name": "tim.plunkett", + "homepage": "https://www.drupal.org/user/241634" + } + ], + "description": "Provides a number of utility and helper APIs for Drupal developers and site builders.", + "homepage": "https://www.drupal.org/project/ctools", + "support": { + "source": "https://git.drupalcode.org/project/ctools", + "issues": "https://www.drupal.org/project/issues/ctools" + } + }, { "name": "drupal/date_popup", "version": "1.1.0", @@ -3927,6 +4020,74 @@ "source": "https://git.drupalcode.org/project/paragraphs" } }, + { + "name": "drupal/pathauto", + "version": "1.8.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/pathauto.git", + "reference": "8.x-1.8" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/pathauto-8.x-1.8.zip", + "reference": "8.x-1.8", + "shasum": "ede3216abb9c4f77709338d9147334c595046329" + }, + "require": { + "drupal/core": "^8.8 || ^9", + "drupal/ctools": "*", + "drupal/token": "*" + }, + "suggest": { + "drupal/redirect": "When installed Pathauto will provide a new \"Update Action\" in case your URLs change. This is the recommended update action and is considered the best practice for SEO and usability." + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.8", + "datestamp": "1588103046", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + }, + "drush": { + "services": { + "drush.services.yml": "^9 || ^10" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Berdir", + "homepage": "https://www.drupal.org/user/214652" + }, + { + "name": "Dave Reid", + "homepage": "https://www.drupal.org/user/53892" + }, + { + "name": "Freso", + "homepage": "https://www.drupal.org/user/27504" + }, + { + "name": "greggles", + "homepage": "https://www.drupal.org/user/36762" + } + ], + "description": "Provides a mechanism for modules to automatically generate aliases for the content they manage.", + "homepage": "https://www.drupal.org/project/pathauto", + "support": { + "source": "https://cgit.drupalcode.org/pathauto", + "issues": "https://www.drupal.org/project/issues/pathauto", + "documentation": "https://www.drupal.org/docs/8/modules/pathauto" + } + }, { "name": "drupal/samlauth", "version": "3.2.0", diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 8edcafd53..0db343afe 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -10,6 +10,7 @@ module: config_translation: 0 convert_media_tags_to_markup: 0 csv_serialization: 0 + ctools: 0 date_popup: 0 datetime: 0 dblog: 0 @@ -64,6 +65,7 @@ module: os2loop_user: 0 os2loop_user_login: 0 page_cache: 0 + path: 0 path_alias: 0 rest: 0 samlauth: 0 @@ -90,6 +92,7 @@ module: views_flag_refresh: 0 viewsreference: 0 xls_serialization: 0 + pathauto: 1 externalauth: 10 paragraphs: 11 better_formats: 100 diff --git a/config/sync/language.content_settings.path_alias.path_alias.yml b/config/sync/language.content_settings.path_alias.path_alias.yml new file mode 100644 index 000000000..d8dfe75fb --- /dev/null +++ b/config/sync/language.content_settings.path_alias.path_alias.yml @@ -0,0 +1,13 @@ +uuid: 6dbee42d-9869-4498-b480-a746a3c980e0 +langcode: en +status: true +dependencies: + module: + - path_alias +_core: + default_config_hash: dhjFABRzm52DkRXnYja5ZoHwjY0R3gEGic3KpDUXgRo +id: path_alias.path_alias +target_entity_type_id: path_alias +target_bundle: path_alias +default_langcode: und +language_alterable: true diff --git a/config/sync/language/da/system.action.pathauto_update_alias_node.yml b/config/sync/language/da/system.action.pathauto_update_alias_node.yml new file mode 100644 index 000000000..ed563b884 --- /dev/null +++ b/config/sync/language/da/system.action.pathauto_update_alias_node.yml @@ -0,0 +1 @@ +label: 'Opdatér alternativ URL' diff --git a/config/sync/language/da/system.action.pathauto_update_alias_user.yml b/config/sync/language/da/system.action.pathauto_update_alias_user.yml new file mode 100644 index 000000000..ed563b884 --- /dev/null +++ b/config/sync/language/da/system.action.pathauto_update_alias_user.yml @@ -0,0 +1 @@ +label: 'Opdatér alternativ URL' diff --git a/config/sync/pathauto.pattern.os2loop_content.yml b/config/sync/pathauto.pattern.os2loop_content.yml new file mode 100644 index 000000000..6eb2e074a --- /dev/null +++ b/config/sync/pathauto.pattern.os2loop_content.yml @@ -0,0 +1,14 @@ +uuid: a8605d54-b9a8-43a3-9aa8-28c7785ecede +langcode: en +status: true +dependencies: + module: + - node +id: os2loop_content +label: Content +type: 'canonical_entities:node' +pattern: '[node:title]' +selection_criteria: { } +selection_logic: and +weight: 0 +relationships: { } diff --git a/config/sync/pathauto.pattern.os2loop_taxonomy.yml b/config/sync/pathauto.pattern.os2loop_taxonomy.yml new file mode 100644 index 000000000..68e7467f9 --- /dev/null +++ b/config/sync/pathauto.pattern.os2loop_taxonomy.yml @@ -0,0 +1,14 @@ +uuid: 42224c94-542a-489c-b4df-ec566642b125 +langcode: en +status: true +dependencies: + module: + - taxonomy +id: os2loop_taxonomy +label: Taxonomy +type: 'canonical_entities:taxonomy_term' +pattern: '[term:vocabulary]/[term:name]' +selection_criteria: { } +selection_logic: and +weight: 0 +relationships: { } diff --git a/config/sync/pathauto.settings.yml b/config/sync/pathauto.settings.yml new file mode 100644 index 000000000..16c0e48af --- /dev/null +++ b/config/sync/pathauto.settings.yml @@ -0,0 +1,52 @@ +enabled_entity_types: { } +punctuation: + double_quotes: 0 + quotes: 0 + backtick: 0 + comma: 0 + period: 0 + hyphen: 1 + underscore: 0 + colon: 0 + semicolon: 0 + pipe: 0 + left_curly: 0 + left_square: 0 + right_curly: 0 + right_square: 0 + plus: 0 + equal: 0 + asterisk: 0 + ampersand: 0 + percent: 0 + caret: 0 + dollar: 0 + hash: 0 + at: 0 + exclamation: 0 + tilde: 0 + left_parenthesis: 0 + right_parenthesis: 0 + question_mark: 0 + less_than: 0 + greater_than: 0 + slash: 0 + back_slash: 0 +verbose: false +separator: '-' +max_length: 100 +max_component_length: 100 +transliterate: true +reduce_ascii: false +case: true +ignore_words: 'a, an, as, at, before, but, by, for, from, is, in, into, like, of, off, on, onto, per, since, than, the, this, that, to, up, via, with' +update_action: 2 +safe_tokens: + - alias + - path + - join-path + - login-url + - url + - url-brief +_core: + default_config_hash: SwvLp8snyPEExF41CaJJYdPUVomofLqtXvwciHc4cPg diff --git a/config/sync/system.action.pathauto_update_alias_node.yml b/config/sync/system.action.pathauto_update_alias_node.yml new file mode 100644 index 000000000..2117a7372 --- /dev/null +++ b/config/sync/system.action.pathauto_update_alias_node.yml @@ -0,0 +1,16 @@ +uuid: 6baca1c6-79e1-4df9-9d9b-8b52e757e2db +langcode: en +status: true +dependencies: + enforced: + module: + - node + module: + - pathauto +_core: + default_config_hash: lno8QThS348UX-kaUsagJtCnuPHKLXYnTQiF_9HSDWA +id: pathauto_update_alias_node +label: 'Update URL alias' +type: node +plugin: pathauto_update_alias +configuration: { } diff --git a/config/sync/system.action.pathauto_update_alias_user.yml b/config/sync/system.action.pathauto_update_alias_user.yml new file mode 100644 index 000000000..18c17619b --- /dev/null +++ b/config/sync/system.action.pathauto_update_alias_user.yml @@ -0,0 +1,16 @@ +uuid: 2bca450c-4941-48b0-a493-0c8f83ed2f1b +langcode: en +status: true +dependencies: + enforced: + module: + - user + module: + - pathauto +_core: + default_config_hash: x_ok_ZsfA4Xk4B_hVW3O4-3PcNoK57nXLz_Dlletidg +id: pathauto_update_alias_user +label: 'Update URL alias' +type: user +plugin: pathauto_update_alias +configuration: { }