You are here

public function BanProvider::getBanIpManager in Automatic IP ban (Autoban) 8

Get BanIpManager object.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection which will be used get BanIpManager.

Return value

object BanIpManager object.

Overrides AutobanProviderInterface::getBanIpManager

File

modules/autoban_ban/src/BanProvider.php, line 38

Class

BanProvider
IP manager class for core Ban module.

Namespace

Drupal\autoban_ban

Code

public function getBanIpManager(Connection $connection) {
  return new BanIpManager($connection);
}