interface IPToolsInterface in Restrict Login or Role Access by IP Address 8.4
Interface IPToolsInterface.
@package Drupal\restrict_by_ip
Hierarchy
- interface \Drupal\restrict_by_ip\IPToolsInterface
Expanded class hierarchy of IPToolsInterface
All classes that implement IPToolsInterface
5 files declare their use of IPToolsInterface
- LoginFirewall.php in src/
LoginFirewall.php - LoginSettingsForm.php in src/
Form/ LoginSettingsForm.php - RoleFirewall.php in src/
RoleFirewall.php - Contains Drupal\restrict_by_ip\RoleFirewall.
- RoleSettingsForm.php in src/
Form/ RoleSettingsForm.php - UserSettingsForm.php in src/
Form/ UserSettingsForm.php
File
- src/
IPToolsInterface.php, line 10
Namespace
Drupal\restrict_by_ipView source
interface IPToolsInterface {
/**
* Return the IP address of the current user using restrict_by_ip general
* settings.
*/
public function getUserIP();
/**
* Given a string, validate that it is valid IP address.
*/
public static function validateIP($ip);
/**
* 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.
*/
public static function validateCIDR($ip, $range);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
IPToolsInterface:: |
public | function | Return the IP address of the current user using restrict_by_ip general settings. | 1 |
IPToolsInterface:: |
public static | function | 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 |
IPToolsInterface:: |
public static | function | Given a string, validate that it is valid IP address. | 1 |