You are here

public function RestrictIpService::getCurrentUserIp in Restrict IP 8.2

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

*

Overrides RestrictIpServiceInterface::getCurrentUserIp

1 call to RestrictIpService::getCurrentUserIp()
RestrictIpService::testWhitelistedIp in src/Service/RestrictIpService.php
* Test an ip address to see if the current user should be whitelisted based on * that address. * *

File

src/Service/RestrictIpService.php, line 208

Class

RestrictIpService

Namespace

Drupal\restrict_ip\Service

Code

public function getCurrentUserIp() {
  return $this->currentUserIp;
}