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

Breadcrumb

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

function PrefixFloodInterface::clearByPrefix

Makes the flood control mechanism forget an event by identifier prefix.

Parameters

string $name: The name of an event.

string $prefix: The prefix of the identifier to be cleared.

2 methods override PrefixFloodInterface::clearByPrefix()
DatabaseBackend::clearByPrefix in core/lib/Drupal/Core/Flood/DatabaseBackend.php
Makes the flood control mechanism forget an event by identifier prefix.
MemoryBackend::clearByPrefix in core/lib/Drupal/Core/Flood/MemoryBackend.php
Makes the flood control mechanism forget an event by identifier prefix.

File

core/lib/Drupal/Core/Flood/PrefixFloodInterface.php, line 18

Class

PrefixFloodInterface
Defines an interface for flood controllers that clear by identifier prefix.

Namespace

Drupal\Core\Flood

Code

public function clearByPrefix(string $name, string $prefix) : void;

API Navigation

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