function PrefixFloodInterface::clearByPrefix
Same name in other branches
- 11.x core/lib/Drupal/Core/Flood/PrefixFloodInterface.php \Drupal\Core\Flood\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\FloodCode
public function clearByPrefix(string $name, string $prefix) : void;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.