Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Drupal.php

function Drupal::flood

Returns the flood instance.

Return value

\Drupal\Core\Flood\FloodInterface

1 call to Drupal::flood()
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');
}
RSS feed
Powered by Drupal