interface FloodUnblockManagerInterface in Flood control 2.0.x
Interface for FloodUnblockManager.
Hierarchy
- interface \Drupal\flood_control\FloodUnblockManagerInterface
Expanded class hierarchy of FloodUnblockManagerInterface
All classes that implement FloodUnblockManagerInterface
File
- src/
FloodUnblockManagerInterface.php, line 8
Namespace
Drupal\flood_controlView source
interface FloodUnblockManagerInterface {
/**
* Gets the user link or location string for an identifier.
*
* @param string $results
* An array containing the identifiers from the flood table.
*
* @return array
* List of identifiers, keyed by the original identifier, containing
* user link or location string or just the unchanged identifier.
*/
public function fetchIdentifiers($results);
/**
* Removes rows from flood table.
*
* @param string $fid
* The flood table entry ID.
*/
public function floodUnblockClearEvent($fid);
/**
* Gets metadata about events.
*
* @return array
* List of events, keyed by the Drupal flood event name containing
* type and label.
*/
public function getEvents();
/**
* Gets the type of an event.
*
* @param string $event
* The event descriptor.
*
* @return string
* Event Type.
*/
public function getEventType($event);
/**
* Gets the label of an event.
*
* @param string $event
* The event descriptor.
*
* @return string
* Event Label.
*/
public function getEventLabel($event);
/**
* Provides identifier's flood status.
*
* @param string $event
* The flood event name.
* @param string $identifier
* The identifier: IP address and/or UID.
*
* @return bool
* Whether the identifier is blocked.
*/
public function isBlocked($event, $identifier);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FloodUnblockManagerInterface:: |
public | function | Gets the user link or location string for an identifier. | 1 |
FloodUnblockManagerInterface:: |
public | function | Removes rows from flood table. | 1 |
FloodUnblockManagerInterface:: |
public | function | Gets the label of an event. | 1 |
FloodUnblockManagerInterface:: |
public | function | Gets metadata about events. | 1 |
FloodUnblockManagerInterface:: |
public | function | Gets the type of an event. | 1 |
FloodUnblockManagerInterface:: |
public | function | Provides identifier's flood status. | 1 |