You are here

class BanProvider in Automatic IP ban (Autoban) 8

IP manager class for core Ban module.

Hierarchy

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

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