You are here

public function RestrictIpMapper::getWhitelistedPaths in Restrict IP 8

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

*

Overrides RestrictIpMapperInterface::getWhitelistedPaths

File

src/Mapper/RestrictIpMapper.php, line 51

Class

RestrictIpMapper

Namespace

Drupal\restrict_ip\Mapper

Code

public function getWhitelistedPaths() {
  return $this->connection
    ->query('SELECT path FROM {restrict_ip_paths} WHERE type = :white ORDER BY path ASC', [
    ':white' => 'white',
  ])
    ->fetchCol();
}