Problem/Motivation
Patch updating code and states based on update status audit.
Proposed resolution
================================================================================
A11Y: Form Helpers, 2.0.1
Scanned on Mon, 08/19/2024 - 15:28
FILE: modules/contrib/a11y_form_helpers/a11y_form_helpers.module
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 136 Call to deprecated function watchdog_exception(). Deprecated
in drupal:10.1.0 and is removed from drupal:11.0.0. Use Use
Drupal\Core\Utility\Error::logException() instead.
--------------------------------------------------------------------------------
Check manually 178 Call to deprecated function watchdog_exception(). Deprecated
in drupal:10.1.0 and is removed from drupal:11.0.0. Use Use
Drupal\Core\Utility\Error::logException() instead.
--------------------------------------------------------------------------------
FILE: modules/contrib/a11y_form_helpers/a11y_form_helpers.info.yml
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 4 Value of core_version_requirement: ^9 || ^10 is not
compatible with the next major version of Drupal core. See
https://drupal.org/node/3070687.
--------------------------------------------------------------------------------
Patch attached for updating code.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3470367-9.patch | 2.92 KB | marty2081 |
| #4 | Screenshot from 2024-08-27 12-23-25.png | 15.29 KB | rajan kumar@2026 |
Issue fork a11y_form_helpers-3470367
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3470367-drupal-11--
changes, plain diff MR !2
Comments
Comment #4
rajan kumar@2026 commentedHi @emptyvoid
I have applied the above patch successfully and created a (MR). I tested it in the local environment and also checked the Drupal Upgrade Status module for compatibility with Drupal 11. A screenshot is attached for reference. Thank you.
Comment #5
marty2081 commentedThe patch is incorrect. The following code will fail:
Error::logException('a11y_form_helpers', $exception);The logException() method requires the first argument to be a class that implements the LoggerInterface and not a string. See https://www.drupal.org/node/2932520
The code should be:
The second question is why catching the PluginException is replaced by catching Exception?
Comment #6
marty2081 commentedAnd here is an updated patch.
Comment #7
marty2081 commentedComment #8
marty2081 commentedComment #9
marty2081 commentedScratch my previous patch. I found out the first try/catch was useless anyway, so this new patch removes that and also makes sure an empty array is returned when there is no purpose.
Here is an updated patch.
Comment #11
tessa bakkerThanks all!