public static function Drupal::flood in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal.php \Drupal::flood()
Returns the flood instance.
Return value
\Drupal\Core\Flood\FloodInterface
2 calls to Drupal::flood()
- DrupalTest::testFlood in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the flood() method.
- FloodTest::testCleanUp in core/
modules/ system/ src/ Tests/ System/ FloodTest.php - Test flood control mechanism clean-up.
File
- core/
lib/ Drupal.php, line 461 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function flood() {
return static::getContainer()
->get('flood');
}