public function AdvbanProvider::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_advban/ src/ AdvbanProvider.php, line 38
Class
- AdvbanProvider
- IP manager class for core Ban module.
Namespace
Drupal\autoban_advbanCode
public function getBanIpManager(Connection $connection) {
return \Drupal::service('advban.ip_manager');
}