You are here

class AdvbanProvider in Automatic IP ban (Autoban) 8

IP manager class for core Ban module.

Hierarchy

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

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