W3cubDocs

/Drupal 8

interface FloodInterface

Defines an interface for flood controllers.

Hierarchy

File

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

Namespace

Drupal\Core\Flood

Members

Name Modifiers Type Description
FloodInterface::clear public function Makes the flood control mechanism forget an event for the current visitor.
FloodInterface::garbageCollection public function Cleans up expired flood events. This method is called automatically on cron run.
FloodInterface::isAllowed public function Checks whether a user is allowed to proceed with the specified event.
FloodInterface::register public function Registers an event for the current visitor to the flood control mechanism.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Flood!FloodInterface.php/interface/FloodInterface/8.1.x