You are here

public function CaptchaPoint::getCaptchaType in CAPTCHA 8

Getter for captcha type property.

Overrides CaptchaPointInterface::getCaptchaType

File

src/Entity/CaptchaPoint.php, line 113

Class

CaptchaPoint
Defines the CaptchaPoint entity.

Namespace

Drupal\captcha\Entity

Code

public function getCaptchaType() {
  if (isset($this->captchaType)) {
    return $this->captchaType;
  }
  else {
    return static::getConfigManager()
      ->getConfigFactory()
      ->get('captcha.settings')
      ->get('default_challenge');
  }
}