Implements Drupal\Core\Flood\FloodInterface::clear().
Overrides FloodInterface::clear
public function clear($name, $identifier = NULL) {
if (!isset($identifier)) {
$identifier = $this->request
->getClientIp();
}
$this->connection
->delete('flood')
->condition('event', $name)
->condition('identifier', $identifier)
->execute();
}