You are here

public static function CleantalkFuncs::_cleantalk_sfw_send_logs in Anti Spam by CleanTalk 8.3

3 calls to CleantalkFuncs::_cleantalk_sfw_send_logs()
BootSubscriber::handle in src/EventSubscriber/BootSubscriber.php
Handles a Request to convert it to a Response.
CleantalkFuncs::_cleantalk_apbct_remote_call__perform in src/CleantalkFuncs.php
Cleantalk inner function - perform remote call
CleantalkSettingsForm::validateForm in src/Form/CleantalkSettingsForm.php
Form validation handler.

File

src/CleantalkFuncs.php, line 654

Class

CleantalkFuncs
Cleantalk class create request

Namespace

Drupal\cleantalk

Code

public static function _cleantalk_sfw_send_logs($access_key) {
  $sfw = new CleantalkSFW($access_key);
  $result = $sfw
    ->send_logs();
  \Drupal::state()
    ->set('cleantalk_sfw_last_send_log', time());
}