You are here

public static function CleantalkFuncs::_cleantalk_get_checkjs_value in Anti Spam by CleanTalk 8.4

Same name and namespace in other branches
  1. 8.3 src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::_cleantalk_get_checkjs_value()
  2. 9.1.x src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::_cleantalk_get_checkjs_value()

Cleantalk inner function - gets JavaScript checking value.

2 calls to CleantalkFuncs::_cleantalk_get_checkjs_value()
CleantalkFuncs::_cleantalk_check_spam in src/CleantalkFuncs.php
Cleantalk inner function - performs antispam checking.
cleantalk_page_attachments_alter in ./cleantalk.module
Implements hook_page_attachments_alter()

File

src/CleantalkFuncs.php, line 221

Class

CleantalkFuncs
Cleantalk class create request

Namespace

Drupal\cleantalk

Code

public static function _cleantalk_get_checkjs_value() {
  return md5(\Drupal::config('cleantalk.settings')
    ->get("cleantalk_authkey") . '+' . \Drupal::config('system.site')
    ->get("mail"));
}