function Drupal::flood
Same name in other branches
- 9 core/lib/Drupal.php \Drupal::flood()
- 8.9.x core/lib/Drupal.php \Drupal::flood()
- 10 core/lib/Drupal.php \Drupal::flood()
Returns the flood instance.
Return value
\Drupal\Core\Flood\FloodInterface
3 calls to Drupal::flood()
- DrupalTest::testFlood in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the flood() method.
- FloodTest::testCleanUp in core/
modules/ system/ tests/ src/ Kernel/ System/ FloodTest.php - Tests flood control mechanism clean-up.
- User::postSave in core/
modules/ user/ src/ Entity/ User.php - Acts on a saved entity before the insert or update hook is invoked.
File
-
core/
lib/ Drupal.php, line 533
Class
- Drupal
- Static Service Container wrapper.
Code
public static function flood() {
return static::getContainer()->get('flood');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.