Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
plugin
Drupal Environment
Commits
f76e49f4
Commit
f76e49f4
authored
1 year ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Add patch to pathauto
parent
eaee1372
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!160
Merging develop into main
Pipeline
#1197118
passed with warnings
1 year ago
Stage: build
Stage: validate
Stage: release
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
patches/d10-3.json
+3
-0
3 additions, 0 deletions
patches/d10-3.json
patches/d10/3437380.diff
+21
-0
21 additions, 0 deletions
patches/d10/3437380.diff
with
24 additions
and
0 deletions
patches/d10-3.json
+
3
−
0
View file @
f76e49f4
...
...
@@ -169,6 +169,9 @@
"drupal/menu_block"
:
{
"#3082445 Add option to always render parent menu item"
:
"https://www.drupal.org/files/issues/2020-10-12/menu_block-render-parent-3082445-26.patch"
},
"drupal/pathauto"
:
{
"#3437380 Argugemt unpacking"
:
"https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3437380.diff"
},
"drupal/pluginreference"
:
{
"#2979414 Allow no selection"
:
"https://www.drupal.org/files/issues/2018-07-18/pluginreference-allow_no_plugin_to_be_selected-2979414-2.patch"
},
...
...
This diff is collapsed.
Click to expand it.
patches/d10/3437380.diff
0 → 100644
+
21
−
0
View file @
f76e49f4
diff --git a/src/PathautoFieldItemList.php b/src/PathautoFieldItemList.php
index 300675ca97c3a327d74a686743d8124c2c7805b0..45fb0ab0fcced41b694941bcf041d9890f6a70fa 100644
--- a/src/PathautoFieldItemList.php
+++ b/src/PathautoFieldItemList.php
@@ -9,7 +9,7 @@
class PathautoFieldItemList extends PathFieldItemList {
/**
* @{inheritdoc}
*/
- protected function delegateMethod($method) {
+ protected function delegateMethod($method, ...$args) {
// @todo Workaround until this is fixed, see
// https://www.drupal.org/project/drupal/issues/2946289.
$this->ensureComputedValue();
@@ -17,7 +17,6 @@
class PathautoFieldItemList extends PathFieldItemList {
// Duplicate the logic instead of calling the parent due to the dynamic
// arguments.
$result = [];
- $args = array_slice(func_get_args(), 1);
foreach ($this->list as $delta => $item) {
// call_user_func_array() is way slower than a direct call so we avoid
// using it if have no parameters.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment