Ban IP manager.
Hierarchy
- class \Drupal\ban\BanIpManager implements BanIpManagerInterface
File
- core/modules/ban/src/BanIpManager.php, line 10
Namespace
Drupal\ban
Members
Name | Modifiers | Type | Description |
---|---|---|---|
BanIpManager::$connection | protected | property | The database connection used to check the IP against. |
BanIpManager::banIp | public | function | Bans an IP address. Overrides BanIpManagerInterface::banIp |
BanIpManager::findAll | public | function | Finds all banned IP addresses. Overrides BanIpManagerInterface::findAll |
BanIpManager::findById | public | function | Finds a banned IP address by its ID. Overrides BanIpManagerInterface::findById |
BanIpManager::isBanned | public | function | Returns if this IP address is banned. Overrides BanIpManagerInterface::isBanned |
BanIpManager::unbanIp | public | function | Unbans an IP address. Overrides BanIpManagerInterface::unbanIp |
BanIpManager::__construct | public | function | Construct the BanSubscriber. |
Please login to continue.