public function CaptchaSettingsForm::__construct in CAPTCHA 8
Constructs a \Drupal\captcha\Form\CaptchaSettingsForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: Module handler.
\Drupal\captcha\Service\CaptchaService $captcha_service: The captcha service.
Overrides ConfigFormBase::__construct
File
- src/
Form/ CaptchaSettingsForm.php, line 52
Class
- CaptchaSettingsForm
- Displays the captcha settings form.
Namespace
Drupal\captcha\FormCode
public function __construct(ConfigFactoryInterface $config_factory, CacheBackendInterface $cache_backend, ModuleHandlerInterface $moduleHandler, CaptchaService $captcha_service) {
parent::__construct($config_factory);
$this->cacheBackend = $cache_backend;
$this->moduleHandler = $moduleHandler;
$this->captchaService = $captcha_service;
}