You are here

public function SimpleRecaptchaWebformHandler::defaultConfiguration in Simple Google reCAPTCHA 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides WebformHandlerBase::defaultConfiguration

File

modules/simple_recaptcha_webform/src/Plugin/WebformHandler/SimpleRecaptchaWebformHandler.php, line 59

Class

SimpleRecaptchaWebformHandler
Webform submission handler plugin.

Namespace

Drupal\simple_recaptcha_webform\Plugin\WebformHandler

Code

public function defaultConfiguration() {
  return [
    'recaptcha_type' => 'v2',
    'v3_score' => 90,
    'v3_error_message' => 'There was an error during validation of your form submission, please try to reload the page and submit form again.',
  ];
}