You are here

public function LegacyBackend::clear in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Flood/LegacyBackend.php \Drupal\service_container\Flood\LegacyBackend::clear()

Implements Drupal\Core\Flood\FloodInterface::clear().

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

Parameters

$name: The name of an event.

$identifier: Optional identifier (defaults to the current user's IP address).

Overrides FloodInterface::clear

File

src/Flood/LegacyBackend.php, line 77
Definition of Drupal\service_container\Flood\LegacyBackend.

Class

LegacyBackend
Defines the database flood backend. This is the default Drupal backend. @codeCoverageIgnore

Namespace

Drupal\service_container\Flood

Code

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