You are here

public function BanIpManager::findAll in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/ban/src/BanIpManager.php \Drupal\ban\BanIpManager::findAll()

Finds all banned IP addresses.

Return value

\Drupal\Core\Database\StatementInterface The result of the database query.

Overrides BanIpManagerInterface::findAll

File

core/modules/ban/src/BanIpManager.php, line 39

Class

BanIpManager
Ban IP manager.

Namespace

Drupal\ban

Code

public function findAll() {
  return $this->connection
    ->query('SELECT * FROM {ban_ip}');
}