Skip to content
Snippets Groups Projects
Commit f76e49f4 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add patch to pathauto

parent eaee1372
No related branches found
No related tags found
1 merge request!160Merging develop into main
Pipeline #1197118 passed with warnings
......@@ -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"
},
......
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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment