public function FloodInterface::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).

2 methods override FloodInterface::clear()
DatabaseBackend::clear in drupal/core/lib/Drupal/Core/Flood/DatabaseBackend.php
Implements Drupal\Core\Flood\FloodInterface::clear().
MemoryBackend::clear in drupal/core/lib/Drupal/Core/Flood/MemoryBackend.php
Implements Drupal\Core\Flood\FloodInterface::clear().

File

drupal/core/lib/Drupal/Core/Flood/FloodInterface.php, line 42
Definition of Drupal\Core\Flood\FloodInterface.

Class

FloodInterface
Defines an interface for flood controllers.

Namespace

Drupal\Core\Flood

Code

public function clear($name, $identifier = NULL);