You are here

public function RestrictIpService::getWhitelistedIpAddresses in Restrict IP 8

Same name and namespace in other branches
  1. 8.2 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 191

Class

RestrictIpService

Namespace

Drupal\restrict_ip\Service

Code

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