public function BanIpManager::__construct in Drupal 8
Same name and namespace in other branches
- 9 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\banCode
public function __construct(Connection $connection) {
$this->connection = $connection;
}