Loading
Issue #3635533 by jrockowitz: Support CAPTCHA 2.0.12 placement
AI-assisted by Codex
Closes #3635533
Summary
- Handle CAPTCHA 2.0.12 placing the administration element under
$form['elements']['captcha']. - Keep compatibility with older CAPTCHA versions that use
$form['captcha']. - Update the administration helper text and links at the detected element location.
Testing
ddev phpunit web/modules/sandbox/webform/tests/src/Functional/Element/WebformElementCaptchaTest.php— passed (1 test, 4 assertions; 121 deprecations and 2 PHPUnit deprecations).php -l third_party_settings/webform.captcha.incandgit diff --check— passed.ddev code-reviewreports missing type hints on existing hook callbacks in the same file. Its ESLint and Stylelint steps are not applicable to this PHP file.