class BanProvider in Automatic IP ban (Autoban) 8
IP manager class for core Ban module.
Hierarchy
- class \Drupal\autoban_ban\BanProvider implements AutobanProviderInterface
Expanded class hierarchy of BanProvider
1 string reference to 'BanProvider'
- autoban_ban.services.yml in modules/
autoban_ban/ autoban_ban.services.yml - modules/autoban_ban/autoban_ban.services.yml
1 service uses BanProvider
- autoban_ban.ban_provider in modules/
autoban_ban/ autoban_ban.services.yml - Drupal\autoban_ban\BanProvider
File
- modules/
autoban_ban/ src/ BanProvider.php, line 12
Namespace
Drupal\autoban_banView source
class BanProvider implements AutobanProviderInterface {
/**
* {@inheritdoc}
*/
public function getId() {
return 'ban';
}
/**
* {@inheritdoc}
*/
public function getName() {
return 'Core Ban';
}
/**
* {@inheritdoc}
*/
public function getBanType() {
return 'single';
}
/**
* {@inheritdoc}
*/
public function getBanIpManager(Connection $connection) {
return new BanIpManager($connection);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BanProvider:: |
public | function |
Get BanIpManager object. Overrides AutobanProviderInterface:: |
|
BanProvider:: |
public | function |
Get Ban type: single, range and so on. Overrides AutobanProviderInterface:: |
|
BanProvider:: |
public | function |
Get BanProvider id for store in autoban rule. Overrides AutobanProviderInterface:: |
|
BanProvider:: |
public | function |
Get BanProvider name for choice list. Overrides AutobanProviderInterface:: |