Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FloodInterface.php

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 core/lib/Drupal/Core/Flood/DatabaseBackend.php
Makes the flood control mechanism forget an event for the current visitor.
MemoryBackend::clear in core/lib/Drupal/Core/Flood/MemoryBackend.php
Makes the flood control mechanism forget an event for the current visitor.

File

core/lib/Drupal/Core/Flood/FloodInterface.php, line 40

Class

FloodInterface
Defines an interface for flood controllers.

Namespace

Drupal\Core\Flood

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal