The last submitted patch, 28: 2466933-27.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 2:32pm 4 April 2023 - 🇺🇸United States smustgrave
Can the issue summary proposed solution be updated please.
Also this appears to just be removing vs deprecating. Any concern with breaking a contrib module?
- 🇫🇷France andypost
I think we can add deprecation but it's can be caught with phpstan - something pass more then one argument to function that expects only one)
- Status changed to Needs review
over 1 year ago 6:30pm 2 May 2023 - last update
over 1 year ago 29,367 pass, 4 fail - 🇫🇷France andypost
Here's a patch to narrow down API to expected information only (human readable module name)
It will help of we'll change resulting array to some value object
+++ b/core/modules/system/system.module @@ -972,14 +972,11 @@ function system_admin_compact_mode() { -function system_get_module_admin_tasks($module, array $info) { +function system_get_module_admin_tasks($module) { @@ -1026,7 +1023,7 @@ function system_get_module_admin_tasks($module, array $info) { - 'title' => t('Configure @module permissions', ['@module' => $info['name']]), + 'title' => t('Configure @module permissions', ['@module' => \Drupal::service('extension.list.module')->getName($module)]),
as it consumes a string and we gonna formalize extension info structure it makes sense to change type to array|string
The last submitted patch, 33: 2466933-33.patch, failed testing. View results →
- last update
over 1 year ago 29,371 pass - Status changed to Needs work
over 1 year ago 1:46pm 3 May 2023 - 🇺🇸United States smustgrave
If the issue summary could be updated also please.
@andypost looking at "Use to pass only $info["name"] instead" that doesn't read right to me. What about just "Pass only $info["name"]"
- Status changed to Needs review
over 1 year ago 11:02pm 3 May 2023 - last update
over 1 year ago 29,375 pass - Status changed to RTBC
over 1 year ago 2:10pm 4 May 2023 - last update
over 1 year ago 29,379 pass - last update
over 1 year ago 29,380 pass 56:22 53:04 Running- last update
over 1 year ago 29,384 pass - last update
over 1 year ago 29,366 pass, 2 fail The last submitted patch, 38: 2466933-38.patch, failed testing. View results →
- last update
over 1 year ago 29,389 pass - last update
over 1 year ago 29,389 pass - last update
over 1 year ago 29,389 pass - last update
over 1 year ago 29,387 pass, 4 fail The last submitted patch, 38: 2466933-38.patch, failed testing. View results →
- last update
over 1 year ago 29,389 pass - Status changed to Fixed
over 1 year ago 11:15am 22 May 2023 - 🇬🇧United Kingdom catch
Fixed this typo on commit:
diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 5f79fca5b8..9a0926a9a9 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -983,7 +983,7 @@ function system_admin_compact_mode() { */ function system_get_module_admin_tasks($module, string|array $module_name) { if (!is_string($module_name)) { - @trigger_error('Calling ' . __FUNCTION__ . '() with $module_name argument as array is deprecated in drupal:10.2.0 and is required to be staring from drupal:11.0.0. Pass only $info["name"] instead. See https://www.drupal.org/node/3357711', E_USER_DEPRECATED); + @trigger_error('Calling ' . __FUNCTION__ . '() with $module_name argument as array is deprecated in drupal:10.2.0 and is required to be string from drupal:11.0.0. Pass only $info["name"] instead. See https://www.drupal.org/node/3357711', E_USER_DEPRECATED); $module_name = $module_name['name']; }
Committed/pushed to 10.2.x, thanks!
This is only used in two places in core - AdminController in system module and HelpController in help module. I think we could make it a trait in system module to get it out of .module altogether? Tagging for a follow-up. Since this issue is already eight years old I didn't want to derail it by proposing that for here.
- 🇫🇷France andypost
Thank you!
Follow-up already exists 📌 Move system_get_module_admin_tasks() into a service and deprecate it Fixed
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 3:48am 9 September 2023