You are here

public function ReCaptchaV3SettingsForm::__construct in reCAPTCHA v3 8

ReCaptchaV3SettingsForm constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory service.

\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: Library discovery service.

\Drupal\Core\Render\ElementInfoManager $element_info_manager: Element info manager service.

\Drupal\captcha\Service\CaptchaService $captcha_service: Captcha service.

Overrides ConfigFormBase::__construct

File

src/Form/ReCaptchaV3SettingsForm.php, line 51

Class

ReCaptchaV3SettingsForm
Configure the google reCAPTCHA v3 api and fallback challenge.

Namespace

Drupal\recaptcha_v3\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, LibraryDiscoveryInterface $library_discovery, ElementInfoManager $element_info_manager, CaptchaService $captcha_service) {
  parent::__construct($config_factory);
  $this->libraryDiscovery = $library_discovery;
  $this->elementInfoManager = $element_info_manager;
  $this->captchaService = $captcha_service;
}