public function SimpleRecaptchaWebformHandler::getSummary in Simple Google reCAPTCHA 8
Returns a render array summarizing the configuration of the webform handler.
Return value
array A render array.
Overrides WebformHandlerBase::getSummary
File
- modules/
simple_recaptcha_webform/ src/ Plugin/ WebformHandler/ SimpleRecaptchaWebformHandler.php, line 70
Class
- SimpleRecaptchaWebformHandler
- Webform submission handler plugin.
Namespace
Drupal\simple_recaptcha_webform\Plugin\WebformHandlerCode
public function getSummary() {
$configuration = $this
->getConfiguration();
$settings = $configuration['settings'];
return [
'#markup' => $this
->t("<b>reCaptcha version:</b> @version", [
'@version' => $settings['recaptcha_type'],
]),
];
}