function _captcha_get_description in CAPTCHA 8
Same name and namespace in other branches
- 5.3 captcha.module \_captcha_get_description()
- 6.2 captcha.inc \_captcha_get_description()
- 6 captcha.module \_captcha_get_description()
- 7 captcha.inc \_captcha_get_description()
Get the CAPTCHA description.
Return value
string CAPTCHA description.
3 calls to _captcha_get_description()
- CaptchaSettingsForm::buildForm in src/
Form/ CaptchaSettingsForm.php - Form constructor.
- CaptchaWebTestBase::assertCaptchaPresence in tests/
src/ Functional/ CaptchaWebTestBase.php - Assert that there is a CAPTCHA on the form or not.
- captcha_form_alter in ./
captcha.module - Implements hook_form_alter().
File
- ./
captcha.inc, line 176 - General CAPTCHA functionality and helper functions.
Code
function _captcha_get_description() {
$description = \Drupal::config('captcha.settings')
->get('description');
return Xss::filter($description);
}