You are here

public function RestrictIpMapper::getWhitelistedIpAddresses in Restrict IP 8

Same name and namespace in other branches
  1. 8.2 src/Mapper/RestrictIpMapper.php \Drupal\restrict_ip\Mapper\RestrictIpMapper::getWhitelistedIpAddresses()
  2. 3.x src/Mapper/RestrictIpMapper.php \Drupal\restrict_ip\Mapper\RestrictIpMapper::getWhitelistedIpAddresses()

*

Overrides RestrictIpMapperInterface::getWhitelistedIpAddresses

File

src/Mapper/RestrictIpMapper.php, line 24

Class

RestrictIpMapper

Namespace

Drupal\restrict_ip\Mapper

Code

public function getWhitelistedIpAddresses() {
  return $this->connection
    ->query('SELECT ip_address FROM {restrict_ip_whitelisted_ip_addresses} ORDER BY ip_address ASC')
    ->fetchCol();
}