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