You are here

class AdvbanRangeProvider in Automatic IP ban (Autoban) 8

IP manager class for Advanced Ban (range) module.

Hierarchy

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_advban
View 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

Namesort descending Modifiers Type Description Overrides
AdvbanRangeProvider::getBanIpManager public function Get BanIpManager object. Overrides AutobanProviderInterface::getBanIpManager
AdvbanRangeProvider::getBanType public function Get Ban type: single, range and so on. Overrides AutobanProviderInterface::getBanType
AdvbanRangeProvider::getId public function Get BanProvider id for store in autoban rule. Overrides AutobanProviderInterface::getId
AdvbanRangeProvider::getName public function Get BanProvider name for choice list. Overrides AutobanProviderInterface::getName