You are here

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

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

Cleantalk inner function - gets working server.

1 call to CleantalkFuncs::_cleantalk_get_ws()
CleantalkFuncs::_cleantalk_check_spam in src/CleantalkFuncs.php
Cleantalk inner function - performs antispam checking.

File

src/CleantalkFuncs.php, line 571

Class

CleantalkFuncs
Cleantalk class create request

Namespace

Drupal\cleantalk

Code

public static function _cleantalk_get_ws() {
  return array(
    'work_url' => \Drupal::state()
      ->get('cleantalk_work_url'),
    'server_url' => 'http://moderate.cleantalk.org',
    'server_ttl' => \Drupal::state()
      ->get('cleantalk_server_ttl'),
    'server_changed' => \Drupal::state()
      ->get('cleantalk_server_changed'),
  );
}