You are here

public function RestrictIpService::getBlacklistedPagePaths in Restrict IP 8

Same name and namespace in other branches
  1. 8.2 src/Service/RestrictIpService.php \Drupal\restrict_ip\Service\RestrictIpService::getBlacklistedPagePaths()
  2. 3.x src/Service/RestrictIpService.php \Drupal\restrict_ip\Service\RestrictIpService::getBlacklistedPagePaths()

*

Overrides RestrictIpServiceInterface::getBlacklistedPagePaths

1 call to RestrictIpService::getBlacklistedPagePaths()
RestrictIpService::allowAccessBlacklistedPath in src/Service/RestrictIpService.php
* Test if the current path is allowed based on blacklist settings

File

src/Service/RestrictIpService.php, line 227

Class

RestrictIpService

Namespace

Drupal\restrict_ip\Service

Code

public function getBlacklistedPagePaths() {
  $blacklisted_paths = $this->mapper
    ->getBlacklistedPaths();
  return is_array($blacklisted_paths) ? $blacklisted_paths : [];
}