function BanIpManager::__construct

Same name in other branches
  1. 9 core/modules/ban/src/BanIpManager.php \Drupal\ban\BanIpManager::__construct()
  2. 10 core/modules/ban/src/BanIpManager.php \Drupal\ban\BanIpManager::__construct()
  3. 11.x core/modules/ban/src/BanIpManager.php \Drupal\ban\BanIpManager::__construct()

Constructs a BanIpManager object.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection which will be used to check the IP against.

File

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

Class

BanIpManager
Ban IP manager.

Namespace

Drupal\ban

Code

public function __construct(Connection $connection) {
    $this->connection = $connection;
}

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