You are here

public function CaptchaPoint::setCaptchaType in CAPTCHA 8

Setter for captcha type property.

Parameters

string|null $captcha_type: Captcha type.

Overrides CaptchaPointInterface::setCaptchaType

File

src/Entity/CaptchaPoint.php, line 128

Class

CaptchaPoint
Defines the CaptchaPoint entity.

Namespace

Drupal\captcha\Entity

Code

public function setCaptchaType($captcha_type) {
  $this->captchaType = $captcha_type != 'default' ? $captcha_type : NULL;
}