public function RestrictIpService::getWhitelistedIpAddresses in Restrict IP 8
Same name and namespace in other branches
- 8.2 src/Service/RestrictIpService.php \Drupal\restrict_ip\Service\RestrictIpService::getWhitelistedIpAddresses()
- 3.x src/Service/RestrictIpService.php \Drupal\restrict_ip\Service\RestrictIpService::getWhitelistedIpAddresses()
*
Overrides RestrictIpServiceInterface::getWhitelistedIpAddresses
1 call to RestrictIpService::getWhitelistedIpAddresses()
- RestrictIpService::buildWhitelistedIpAddresses in src/
Service/ RestrictIpService.php - * Build an array of whitelisted IP addresses based on site settings
File
- src/
Service/ RestrictIpService.php, line 191
Class
Namespace
Drupal\restrict_ip\ServiceCode
public function getWhitelistedIpAddresses() {
$ip_addresses = $this->mapper
->getWhitelistedIpAddresses();
return is_array($ip_addresses) ? $ip_addresses : [];
}