You are here

public function RestrictIpMapper::getBlacklistedPaths in Restrict IP 8

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

*

Overrides RestrictIpMapperInterface::getBlacklistedPaths

File

src/Mapper/RestrictIpMapper.php, line 78

Class

RestrictIpMapper

Namespace

Drupal\restrict_ip\Mapper

Code

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