You are here

public function RestrictIpService::getWhitelistedPagePaths in Restrict IP 8

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

*

Overrides RestrictIpServiceInterface::getWhitelistedPagePaths

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

File

src/Service/RestrictIpService.php, line 209

Class

RestrictIpService

Namespace

Drupal\restrict_ip\Service

Code

public function getWhitelistedPagePaths() {
  $whitelisted_paths = $this->mapper
    ->getWhitelistedPaths();
  return is_array($whitelisted_paths) ? $whitelisted_paths : [];
}