public static function IPToolsInterface::validateCIDR in Restrict Login or Role Access by IP Address 8.4
Given an singe IP address and a range of IP addresses in CIDR notation, validate that the single IP address is withing the range of IP addresses.
1 method overrides IPToolsInterface::validateCIDR()
- IPTools::validateCIDR in src/
IPTools.php - Given an singe IP address and a range of IP addresses in CIDR notation, validate that the single IP address is withing the range of IP addresses.
File
- src/
IPToolsInterface.php, line 27
Class
- IPToolsInterface
- Interface IPToolsInterface.
Namespace
Drupal\restrict_by_ipCode
public static function validateCIDR($ip, $range);