function BanIpManagerInterface::isBanned
Same name in other branches
- 8.9.x core/modules/ban/src/BanIpManagerInterface.php \Drupal\ban\BanIpManagerInterface::isBanned()
- 10 core/modules/ban/src/BanIpManagerInterface.php \Drupal\ban\BanIpManagerInterface::isBanned()
- 11.x core/modules/ban/src/BanIpManagerInterface.php \Drupal\ban\BanIpManagerInterface::isBanned()
Returns if this IP address is banned.
Parameters
string $ip: The IP address to check.
Return value
bool TRUE if the IP address is banned, FALSE otherwise.
1 method overrides BanIpManagerInterface::isBanned()
- BanIpManager::isBanned in core/
modules/ ban/ src/ BanIpManager.php - Returns if this IP address is banned.
File
-
core/
modules/ ban/ src/ BanIpManagerInterface.php, line 19
Class
- BanIpManagerInterface
- Provides an interface defining a BanIp manager.
Namespace
Drupal\banCode
public function isBanned($ip);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.