You are here

public function RestrictIpService::getCurrentUserIp in Restrict IP 8

Same name and namespace in other branches
  1. 8.2 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 175

Class

RestrictIpService

Namespace

Drupal\restrict_ip\Service

Code

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