This is an automated patch generated by Drupal Rector. Please see the issue summary for more details.
It is important that any automated tests available are run with this patch and that you manually test this patch.
Drupal 10 Compatibility
According to the Upgrade Status module → , even with this patch, this module is not yet compatible with Drupal 10.
Currently Drupal Rector, version 0.15.1, cannot fix all Drupal 10 compatibility problems.
Therefore this patch does not update the
info.yml
file for Drupal 10 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot → to post additional Drupal 10 compatibility fixes as they become available in Drupal Rector.
Debug info
Bot run #12554This patch was created using these packages:
- mglaman/phpstan-drupal: 1.1.35
- palantirnet/drupal-rector: 0.15.1
- First commit to issue fork.
- Merge request !2Issue #3287750: Automated Drupal 10 compatibility fixes → (Closed) created by arti_parmar
- 🇺🇸United States w01f
This seems to be fixed and works in D10 by updating the module file give/src/Form/Donation/PaymentForm.php with:
1. Adding "use Drupal\Core\Extension\ModuleHandlerInterface;" at the top.
2. At line 163, replacing with:
if ($give_settings->get('log_problems')) { // Use the ModuleHandler service to get the module path. $moduleHandler = \Drupal::service('module_handler'); $mod_path = $moduleHandler->getModule('give')->getPath(); // Define the drupalSettings for problem logging. $form['#attached']['drupalSettings']['give']['problem_log'] = [ 'donation_uuid' => $donation->uuid(), 'url' => Url::fromUri("base:$mod_path/give_problem_log.php")->toString(), ]; }
- Status changed to RTBC
12 months ago 1:59am 6 December 2023