You are here

public function UserFloodControl::garbageCollection in Drupal 9

Cleans up expired flood events. This method is called automatically on cron run.

Overrides FloodInterface::garbageCollection

See also

system_cron()

File

core/modules/user/src/UserFloodControl.php, line 94

Class

UserFloodControl
User Flood Control service.

Namespace

Drupal\user

Code

public function garbageCollection() {
  return $this->flood
    ->garbageCollection();
}