BanProvider.php in Automatic IP ban (Autoban) 8
File
modules/autoban_ban/src/BanProvider.php
View source
<?php
namespace Drupal\autoban_ban;
use Drupal\autoban\AutobanProviderInterface;
use Drupal\ban\BanIpManager;
use Drupal\Core\Database\Connection;
class BanProvider implements AutobanProviderInterface {
public function getId() {
return 'ban';
}
public function getName() {
return 'Core Ban';
}
public function getBanType() {
return 'single';
}
public function getBanIpManager(Connection $connection) {
return new BanIpManager($connection);
}
}