function UserFloodControl::garbageCollection

Same name and namespace in other branches
  1. 9 core/modules/user/src/UserFloodControl.php \Drupal\user\UserFloodControl::garbageCollection()
  2. 11.x core/modules/user/src/UserFloodControl.php \Drupal\user\UserFloodControl::garbageCollection()

Cleans up expired flood events.

This method is called automatically on cron run.

Overrides FloodInterface::garbageCollection

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.