Closed (fixed)
Project:
Simple Google reCAPTCHA
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 May 2020 at 12:46 UTC
Updated:
19 Oct 2020 at 17:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sokru commentedI tried to add
hook_themeto simple_recaptcha_webform.module file, but I guess its because handler ID is simple_recaptcha it won't be recognized and it needs to go inside of parent module.Comment #3
sokru commentedAnd missing patch.
Comment #4
sokru commentedComment #5
sandboxplSee \Drupal\webform\Plugin\WebformHandlerBase::getSummary()
https://git.drupalcode.org/project/webform/-/blob/8.x-5.x/src/Plugin/Web...
When custom webform handler extends from it and doesn't provide it's own summary,
it will inherit from base and try to call theme hook created from plugin ID:
I think that It will be cleaner to add implementation of getSummary() in SimpleRecaptchaWebformHandler:
https://git.drupalcode.org/project/simple_recaptcha/-/blob/8.x-1.x/modul...
Comment #6
sokru commentedThis patch uses getSummary() approach. It provides only reCaptcha version number on handler summary. This is enough to remove the PHP warning.
Comment #8
sandboxplFair enough to keep dblog empty, I don't think that adding custom message to the summary will be good idea, let's try keep that table column clean. Thanks!