public static function CleantalkFuncs::apbct_sfw_send_logs in Anti Spam by CleanTalk 9.1.x
Same name and namespace in other branches
- 8.4 src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::apbct_sfw_send_logs()
2 calls to CleantalkFuncs::apbct_sfw_send_logs()
- CleantalkSettingsForm::validateForm in src/
Form/ CleantalkSettingsForm.php - Form validation handler.
- RemoteCalls::action__sfw_send_logs in src/
lib/ Cleantalk/ ApbctDrupal/ RemoteCalls.php - SFW send logs
File
- src/
CleantalkFuncs.php, line 681
Class
- CleantalkFuncs
- Cleantalk class create request
Namespace
Drupal\cleantalkCode
public static function apbct_sfw_send_logs($access_key = '') {
if (empty($access_key)) {
$access_key = trim(\Drupal::config('cleantalk.settings')
->get('cleantalk_authkey'));
if (empty($access_key)) {
return false;
}
}
$firewall = new Firewall($access_key, DB::getInstance(), APBCT_TBL_FIREWALL_LOG);
$firewall
->setSpecificHelper(new CleantalkHelper());
$result = $firewall
->sendLogs();
return true;
}