class MemoryBackend

Defines the memory flood backend. This is used for testing.

Hierarchy

File

core/lib/Drupal/Core/Flood/MemoryBackend.php, line 10

Namespace

Drupal\Core\Flood

Members

Name Modifiers Type Description
MemoryBackend::$events protected property An array holding flood events, keyed by event name and identifier.
MemoryBackend::$requestStack protected property The request stack.
MemoryBackend::clear public function Makes the flood control mechanism forget an event for the current visitor. Overrides FloodInterface::clear
MemoryBackend::garbageCollection public function Cleans up expired flood events. This method is called automatically on cron run. Overrides FloodInterface::garbageCollection
MemoryBackend::isAllowed public function Checks whether a user is allowed to proceed with the specified event. Overrides FloodInterface::isAllowed
MemoryBackend::register public function Registers an event for the current visitor to the flood control mechanism. Overrides FloodInterface::register
MemoryBackend::__construct public function Construct the MemoryBackend.

© 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!MemoryBackend.php/class/MemoryBackend/8.1.x