private function RateBotDetector::registerBot in Rate 8.2
Save IP address as a bot.
1 call to RateBotDetector::registerBot()
- RateBotDetector::checkIsBot in src/
Plugin/ RateBotDetector.php - Check if the current user is blocked.
File
- src/
Plugin/ RateBotDetector.php, line 113
Class
- RateBotDetector
- The rate.bot_detector service.
Namespace
Drupal\rate\PluginCode
private function registerBot() {
$this->database
->insert('rate_bot_ip')
->fields([
'ip' => $this->ip,
])
->execute();
}