You are here

public function RestrictIpService::getWhitelistedIpAddresses in Restrict IP 8.2

Same name and namespace in other branches
  1. 8 src/Service/RestrictIpService.php \Drupal\restrict_ip\Service\RestrictIpService::getWhitelistedIpAddresses()
  2. 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 224

Class

RestrictIpService

Namespace

Drupal\restrict_ip\Service

Code

public function getWhitelistedIpAddresses() {
  $ip_addresses = $this->mapper
    ->getWhitelistedIpAddresses();
  return is_array($ip_addresses) ? $ip_addresses : [];
}