You are here

public function UserFloodControl::clear in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/user/src/UserFloodControl.php \Drupal\user\UserFloodControl::clear()

Makes the flood control mechanism forget an event for the current visitor.

Parameters

string $name: The name of an event.

string $identifier: (optional) Unique identifier of the current user. Defaults to the current user's IP address).

Overrides FloodInterface::clear

File

core/modules/user/src/UserFloodControl.php, line 87

Class

UserFloodControl
User Flood Control service.

Namespace

Drupal\user

Code

public function clear($name, $identifier = NULL) {
  return $this->flood
    ->clear($name, $identifier);
}