public function RateWidgetBase::isBotVote in Rate 8.2
Checks whether IP from request is a known bot.
Return value
bool True if we have a bot voting
File
- src/
Plugin/ RateWidgetBase.php, line 237
Class
- RateWidgetBase
- Base class for Rate widget plugins.
Namespace
Drupal\rate\PluginCode
public function isBotVote() {
$is_bot_vote = $this->botDetector
->checkIsBot();
return $is_bot_vote;
}