public function RateLimit::hit in RESTful 7.2
Saves an extra hit.
File
- src/
RateLimit/ Entity/ RateLimit.php, line 29 - Contains Drupal\restful\RateLimit\Entity\RateLimit.
Class
Namespace
Drupal\restful\RateLimit\EntityCode
public function hit() {
$this->hits++;
$this
->save();
}