Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS-2193-update-d9 - updating AliasManager #6

Open
wants to merge 110 commits into
base: 8.x-1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
7457458
task #231181: add files to domain path module
skrasulevskiy May 8, 2017
089e98e
task #231181: update files of domain path module
skrasulevskiy May 10, 2017
9c4a0e5
task #231181: update files of domain path module
skrasulevskiy May 10, 2017
a6f7c6a
task #231181: fix new node creation of domain path module
skrasulevskiy May 11, 2017
a95e2f0
task #231181: fix new node creation of domain path module
skrasulevskiy May 11, 2017
536c1a6
conflict fix
May 11, 2017
b15b64b
Merge branch 'master' of https://code.adyax.com/skrasulevskiy/domain_…
May 11, 2017
850e3ba
redirect node for custom domain alias
May 11, 2017
6fc8b45
task #231181: fix new node creation of domain path module
skrasulevskiy May 11, 2017
7b81041
Merge branch 'master' of code.adyax.com:skrasulevskiy/domain_path
skrasulevskiy May 11, 2017
57b8218
task #231181: fix new node creation of domain path module
skrasulevskiy May 11, 2017
55f86d5
task #231181: fix new node creation of domain path module
skrasulevskiy May 11, 2017
d108990
task #231181: proper redirect for multilang
May 11, 2017
10c5e15
task #231181: update domain path properties
skrasulevskiy May 11, 2017
191c772
Merge branch 'master' of code.adyax.com:skrasulevskiy/domain_path
skrasulevskiy May 11, 2017
e6ec63b
task #231181: update domain path properties
skrasulevskiy May 11, 2017
3fb57e8
task #231181: disable source domain path without alias
May 12, 2017
f13a42d
task #231181: move domain path tab to advanced group on node edit form
skrasulevskiy May 12, 2017
e729a77
Merge branch 'master' of code.adyax.com:skrasulevskiy/domain_path
skrasulevskiy May 12, 2017
31f1fe5
task #231181: disable source domain path without alias
May 12, 2017
0bbb200
Merge branch 'master' of https://code.adyax.com/skrasulevskiy/domain_…
May 12, 2017
2c88c59
task #231181: domain path entity delete
skrasulevskiy May 12, 2017
91c765a
task #231181: domain path update files
skrasulevskiy May 12, 2017
fca86aa
task #231181: domain path update files
skrasulevskiy May 12, 2017
ff70679
task #231181: proper redirect, alias add delete
May 15, 2017
ee62200
task #231181: domain path update pathauto edit form with domains sele…
skrasulevskiy May 15, 2017
c6b451f
task #231181: add domains selection to url path settings
skrasulevskiy May 15, 2017
d57ff5a
task #231181: add domains selection to url path settings
skrasulevskiy May 16, 2017
4e0ac1f
task #231181: add domains selection to url path settings
skrasulevskiy May 16, 2017
73bc7ac
task #231181: add domains selection to url path settings
skrasulevskiy May 16, 2017
7111c78
task #231181: refactor submit function
skrasulevskiy May 17, 2017
d78fe67
task #231181: refactor domain path widget validation function
skrasulevskiy May 17, 2017
dec6ca3
task #231181: refactor domain path widget validation function
skrasulevskiy May 17, 2017
226eb85
task #231181: refactor domain path widget validation function
skrasulevskiy May 17, 2017
99d4770
task #231181: redirect fix, change domain conditions to property
May 18, 2017
c2dff0c
task #231181: refactor domain path edit form
skrasulevskiy May 18, 2017
136b7ad
Merge branch 'master' of code.adyax.com:skrasulevskiy/domain_path
skrasulevskiy May 18, 2017
b95a6d1
task #231181: domain path functional tests
skrasulevskiy May 19, 2017
b15a3db
task #231181: proper redirect, alias add delete
May 19, 2017
2eb54cb
task #231181: proper redirect, alias add delete
May 19, 2017
41561d4
task #231181: proper redirect, alias add delete
May 19, 2017
645251f
task #231181: domain path functional tests
skrasulevskiy May 19, 2017
f5096a8
task #231181: domain path functional tests
skrasulevskiy May 19, 2017
a96c392
task #231181: code cleanup, node form settings
May 19, 2017
fc8f694
task #231181: domain path entity view dynamic tab
skrasulevskiy May 22, 2017
b34bda2
task #231181: code cleanup, links, redirect for all entities
May 23, 2017
1b39c85
task #231181: code cleanup, links, user form fix
May 24, 2017
9a94411
task #235096: functional tests for domain_path aliases
May 26, 2017
429f700
task #235096: functional tests for domain_path aliases
May 26, 2017
71e9437
task #235096: functional tests for domain_path aliases
May 31, 2017
90d15b1
task #235096: functional tests for domain_path aliases
Jun 1, 2017
e413cc9
task #235096: fix domain_path add/edit page
Jun 2, 2017
ce13887
task #231181: add domain path updated version
skrasulevskiy Mar 28, 2018
af1261c
task #231181: refactor domain path code
skrasulevskiy Mar 28, 2018
304844a
task #231181: add readme file
skrasulevskiy Mar 29, 2018
e2ae426
task #231181: fix langcode default value
skrasulevskiy Mar 29, 2018
dad8b36
task #231181: fix validation for new entities
skrasulevskiy Mar 29, 2018
7bc9f5d
task #231181: added DomainPathNodeAliasTest
skrasulevskiy Apr 3, 2018
0702db6
task #231181: added DomainPathCreateTest
skrasulevskiy Apr 3, 2018
e783cf6
Issue #2821633 by skrasulevskiy: Drupal 8 version of this module
Apr 10, 2018
6c25009
Issue #2972268 by skrasulevskiy: DomainPathInterface is not filled an…
May 11, 2018
750d465
Issue #2976931 by drclaw: 'View' permission check name doesn't match …
Jun 8, 2018
7ebb9cf
Issue #3009372 by drclaw, markdc, DrDam: Domain path fieldset not in …
May 12, 2020
c2382fa
Issue #3121647 by emasclans, rcodina: Domain specific path validation…
May 12, 2020
b189c36
Issue #3121607 by emasclans, rcodina: Add domain label title configur…
May 12, 2020
e5e8210
Add changelog
May 12, 2020
03b1ac8
Issue #3122607 and #3128283 by StryKaizer, emasclans, rcodina: proces…
May 12, 2020
6d689bb
Issue #3127593 by drpldrp, StryKaizer: Domain path field not hidden f…
May 12, 2020
9a3c1ec
Prepare new beta3 release
May 12, 2020
bd0b47c
Issue #3136977 by StryKaizer, rcodina: When deleting an entity, trans…
May 17, 2020
4bc976a
Issue #3112534 by kadiiski, rcodina: Wrong validation on edit (Domain…
May 17, 2020
30742b6
Issue #3137375 by rcodina: Remove deprecated code on DomainPathForm
May 22, 2020
de88f23
Issue #3131284 by StryKaizer, rcodina, Brian C: Support pathauto for …
May 22, 2020
d40305a
Issue #3138970 by szato, rcodina: Delete domain paths on domain delete
May 22, 2020
22b7137
Issue #3040648 by vflirt, Dan_Rogers, rcodina: Unsaved Node Preview C…
May 22, 2020
9f3868e
Prepare beta4 release
May 22, 2020
a54387e
Issue #3157964 by Ramya Balasubramanian, rcodina: Configure option is…
Aug 6, 2020
db926b0
Issue #3215868 by guardiola86, shenzhuxi: The path validation didn't …
shenzhuxi Jun 22, 2021
d1b4313
add an option to hide the default path alias UI
shenzhuxi Jun 22, 2021
b542a14
determine "Generate automatic URL alias" on/off by the existence of
shenzhuxi Jul 1, 2021
42f9624
Issue #3221548 by sanoopuio, larisse: Warning: Invalid argument suppl…
Jul 27, 2021
8a967a3
Issue #3198615 by jhedstrom: Add ability to filter by alias in domain…
Jul 27, 2021
7686314
Issue #3173140 by sonfd: Pass domain_id to DomainPathAuto alter hooks
Jul 27, 2021
374b59e
Issue #3157959 by Ramya Balasubramanian, rcodina: All dependencies mu…
Jul 27, 2021
f06f7a9
Provide a wrapper DomainPathAliasManager to alter path_alias.manager …
shenzhuxi Jul 28, 2021
4c0aad4
Add an option for users to set the method to detect language
shenzhuxi Aug 11, 2021
46b87a9
Issue #3226546 by kirkkala: Notice: Undefined variable: path_value in…
shenzhuxi Aug 11, 2021
f0707dc
Avoid "Circular reference detected" for service "domain.route_provide…
shenzhuxi Aug 13, 2021
d4b778a
Issue #3227032 by guardiola86: Page not found after updating
Aug 16, 2021
4d9ab39
CMS-2193-update-d9 - updating AliasManager
simon-peacock Sep 26, 2021
35a7604
For the current situation of Drupal 8/9 language negotiation and tran…
shenzhuxi Sep 27, 2021
1df8666
try adapting core translation
shenzhuxi Oct 1, 2021
8084c72
revert from https://www.drupal.org/project/domain_path/issues/3227032
shenzhuxi Oct 1, 2021
250d809
Issue #3240187 by jno84: Alias field invisible when using select/radi…
Oct 1, 2021
ec4ba9b
Issue #3228135 by edmargomes: domain path alias gets deleted on node …
Oct 1, 2021
0ee56ed
Issue #3228714 by lifedraft: Whitespace should be trimmed before saving
Oct 1, 2021
acc4ea7
CMS-2193-update-d9 - mirror contrib
simon-peacock Oct 4, 2021
e95efe0
Issue #3252364 by drpldrp: Change "Hide the default URL alias UI" to …
Dec 8, 2021
caca91a
Issue #3252036 by quadrexdev: The default values of all "Generate an …
shenzhuxi Dec 8, 2021
33fde0b
Issue #3265497 by antongp: Warning: Undefined array key "pathauto" in…
Mar 2, 2022
4a36118
issue-3253324: Moved pathauto-related code to appropriate submodule
Aug 22, 2022
a9cbf81
issue-3300654 Fixed issues with default values of form elements and g…
Aug 24, 2022
ba7b37a
issue-3306549 Fixed fatal error when using autocomplete widget, moved…
quadrexdb Aug 29, 2022
4255d1a
Merge branch 'drupal-8.x-1.x' into CMS-2193-update-d9
evomase Oct 3, 2022
7a43bb5
[CMS-2193] Fix dependency injection issue with db connection
evomase Oct 6, 2022
90d50a1
Issue #3307045 by Alina Basarabeanu: LogicException: The database con…
Apr 28, 2023
ed4a4f1
Issue #3293165 by ekes: Existing Tests fail
May 3, 2023
c0920f3
Merge remote-tracking branch 'drupal/8.x-1.x' into CMS-2193-update-d9
evomase May 15, 2023
4fea95d
[CMS-2193] Fixed issue with invalid key in array
evomase May 15, 2023
41cad32
[CMS-2193] Added missing file
evomase May 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified CHANGELOG.txt
100644 → 100755
Empty file.
339 changes: 339 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

Empty file modified README.md
100644 → 100755
Empty file.
19 changes: 14 additions & 5 deletions composer.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"name": "drupal/domain_path",
"type": "drupal-module",
"description": "Allow the same path to be used across different domains",
"homepage": "https://github.com/dennisinteractive/domain_path",
"license": "GPL-2.0+"
"name": "drupal/domain_path",
"description": "Allow the same path to be used across different domains.",
"type": "drupal-module",
"homepage": "https://github.com/dennisinteractive/domain_path",
"license": "GPL-2.0-or-later",
"require": {
"drupal/domain": "^1.0-beta"
},
"require-dev": {
"drupal/pathauto": "1.x-dev"
},
"suggest": {
"drupal/pathauto": "Automatic path aliases with Domain Path Pathauto submodule."
}
}
2 changes: 2 additions & 0 deletions config/install/domain_path.settings.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
entity_types:
node: '1'
hide_path_alias_ui: TRUE
language_method: 'language_content'
6 changes: 6 additions & 0 deletions config/schema/domain_path.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ domain_path.settings:
type: sequence
sequence:
type: string
hide_path_alias_ui:
label: Hide the default URL alias UI
type: boolean
language_method:
label: The method of language detection
type: string
7 changes: 4 additions & 3 deletions domain_path.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: 'Domain Path'
description: 'Allows separate path aliases per domain.'
type: module
package: Domain
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^8.8 || ^9 || ^10
configure: entity.domain_path_settings
dependencies:
- path
- domain
- drupal:path
- domain:domain
Empty file modified domain_path.links.action.yml
100644 → 100755
Empty file.
9 changes: 0 additions & 9 deletions domain_path.services.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
services:
domain_path.path_processor:
class: Drupal\domain_path\PathProcessor\DomainPathProcessor
arguments: ['@language_manager', '@entity_type.manager', '@path_alias.manager', '@domain.negotiator']
tags:
# Priority is very important here. The inbound processor needs to happen
# BEFORE the path module alias processor, and the outbound needs to happen
# AFTER the alias processor.
- { name: path_processor_inbound, priority: 110 }
- { name: path_processor_outbound, priority: 200 }
domain_path.helper:
class: Drupal\domain_path\DomainPathHelper
arguments: ['@current_user', '@entity_type.manager', '@path_alias.manager', '@config.factory', '@module_handler']
21 changes: 21 additions & 0 deletions drupalci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
build:
assessment:
validate_codebase:
phplint:
csslint:
halt-on-fail: false
eslint:
halt-on-fail: false
phpcs:
sniff-all-files: false
halt-on-fail: false
testing:
container_command:
commands:
- '/bin/bash -c "cd ${SOURCE_DIR}/modules/contrib/domain && chmod +x ./define_subdomains.sh && ./define_subdomains.sh"'
run_tests.standard:
types: 'PHPUnit-Unit,PHPUnit-Build,PHPUnit-Kernel,PHPUnit-Functional'
run_tests.js:
concurrency: 1
types: 'PHPUnit-FunctionalJavascript'
nightwatchjs:
4 changes: 2 additions & 2 deletions modules/domain_path_pathauto/domain_path_pathauto.info.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: Domain Path Pathauto support
core_version_requirement: ^8.8 || ^9
package: Domain
dependencies:
- domain_path
- pathauto(>= 1.8)
- domain_path:domain_path
- pathauto:pathauto(>= 1.8)
42 changes: 42 additions & 0 deletions modules/domain_path_pathauto/domain_path_pathauto.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

/**
* @file
* Pathauto alias handling for multiple domains.
*/

use Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Form\FormStateInterface;

/**
* Implements hook_form_alter().
*/
function domain_path_pathauto_form_alter(&$form, FormStateInterface $form_state, $form_id) {
// Firstly check if default pathauto UI is hidden or not. Depending on it
// we're altering different form elements.
// @see DomainPathautoHelper::alterEntityForm().
$keys = ['path', 'widget', 0, 'domain_path'];
$default_ui_hidden = \Drupal::config('domain_path.settings')->get('hide_path_alias_ui');
if ($default_ui_hidden) {
$keys = ['domain_path'];
}
if (!empty(NestedArray::getValue($form, $keys)) && ($object = $form_state->getFormObject()) && is_callable([
$object,
'getEntity',
])
&& ($entity = $object->getEntity())) {
$domain_path_helper = \Drupal::service('domain_path.helper');
$domain_path_pathauto_helper = \Drupal::service('domain_path_pathauto.helper');
/** @var \Drupal\domain_path_pathauto\DomainPathautoHelper $domain_path_pathauto_helper */
if ($domain_path_helper->domainPathsIsEnabled($entity)) {
try {
$domain_path_pathauto_helper->alterEntityForm($form, $form_state, $entity, $keys);
}
catch (InvalidPluginDefinitionException | PluginNotFoundException $e) {
}

}
}
}
3 changes: 3 additions & 0 deletions modules/domain_path_pathauto/domain_path_pathauto.services.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ services:
domain_path_pathauto.alias_uniquifier:
class: Drupal\domain_path_pathauto\DomainAliasUniquifier
arguments: ['@config.factory', '@pathauto.alias_storage_helper','@module_handler', '@router.route_provider', '@path_alias.manager']
domain_path_pathauto.helper:
class: Drupal\domain_path_pathauto\DomainPathautoHelper
arguments: ['@entity_type.manager', '@domain_path_pathauto.generator', '@config.factory', '@domain_path.helper']
Empty file modified modules/domain_path_pathauto/src/DomainAliasUniquifier.php
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions modules/domain_path_pathauto/src/DomainPathautoGenerator.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\pathauto\PathautoGenerator;
use Drupal\pathauto\PathautoGeneratorInterface;

/**
* Provides methods for generating domain path aliases.
Expand Down Expand Up @@ -65,6 +66,7 @@ public function createEntityAlias(EntityInterface $entity, $op, $domain_id = '')
'data' => $data,
'bundle' => $entity->bundle(),
'language' => &$langcode,
'domain_id' => $domain_id,
];
$pattern_original = $pattern->getPattern();
$this->moduleHandler->alter('pathauto_pattern', $pattern, $context);
Expand Down
Loading