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