public static function Helper::getFwStats in Anti Spam by CleanTalk 8.4
Same name in this branch
- 8.4 src/lib/Cleantalk/Common/Helper.php \Cleantalk\Common\Helper::getFwStats()
- 8.4 src/lib/Cleantalk/ApbctDrupal/Helper.php \Cleantalk\ApbctDrupal\Helper::getFwStats()
Same name and namespace in other branches
- 9.1.x src/lib/Cleantalk/ApbctDrupal/Helper.php \Cleantalk\ApbctDrupal\Helper::getFwStats()
Get fw stats from the storage.
@example array( 'firewall_updating' => false, 'firewall_updating_id' => md5(), 'firewall_update_percent' => 0, 'firewall_updating_last_start' => 0 ) @important This method must be overloaded in the CMS-based Helper class.
Return value
array
Overrides Helper::getFwStats
File
- src/
lib/ Cleantalk/ ApbctDrupal/ Helper.php, line 14
Class
Namespace
Cleantalk\ApbctDrupalCode
public static function getFwStats() {
return array(
'firewall_updating_id' => \Drupal::state()
->get('firewall_updating_id') ? \Drupal::state()
->get('firewall_updating_id') : null,
'firewall_updating_last_start' => \Drupal::state()
->get('firewall_updating_last_start') ? \Drupal::state()
->get('firewall_updating_last_start') : 0,
'firewall_update_percent' => \Drupal::state()
->get('firewall_update_percent') ? \Drupal::state()
->get('firewall_update_percent') : null,
);
}