You are here

public function Captcha::__construct in CAPTCHA 8

Captcha constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.

Overrides PluginBase::__construct

File

src/Element/Captcha.php, line 38

Class

Captcha
Defines the CAPTCHA form element with default properties.

Namespace

Drupal\captcha\Element

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $configFactory) {
  $this->configFactory = $configFactory;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}