Problem/Motivation

When a webform with the recaptcha element is loaded a warning is logged about the theme hook.

Steps to reproduce

Add module to site with Webforrm 6.1.3, create webform and add handler.

Proposed resolution

Add a 'getSummary' to the handler, similar to the resolution in https://www.drupal.org/project/simple_recaptcha/issues/3143531

User interface changes

None

API changes

None

Data model changes

None

Comments

louisnagtegaal created an issue. See original summary.

louisnagtegaal’s picture

StatusFileSize
new590 bytes

Patch added.

mustanggb’s picture

Just came to report this as well.

bbrala’s picture

Status: Active » Needs work
+++ b/src/Plugin/WebformHandler/RecaptchaElementWebformHandler.php
@@ -121,4 +121,13 @@ class RecaptchaElementWebformHandler extends WebformHandlerBase {
+      '#markup' => $this->t("<b>Recaptcha element web form handler.</b>"),

web form shouod be webform i think?

Also no punctuation needed here i think.

immaculatexavier’s picture

Status: Needs work » Needs review
StatusFileSize
new588 bytes
new508 bytes

Attached patch for the aforementioned comment in #4 against #2

bbrala’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

guillaumeduveau’s picture

This is not fixed.