You are here

protected function ContextUserAuth::getIP in TMGMT Translator Smartling 8.2

Same name and namespace in other branches
  1. 8.4 src/Context/ContextUserAuth.php \Drupal\tmgmt_smartling\Context\ContextUserAuth::getIP()
  2. 8 src/Context/ContextUserAuth.php \Drupal\tmgmt_smartling\Context\ContextUserAuth::getIP()
  3. 8.3 src/Context/ContextUserAuth.php \Drupal\tmgmt_smartling\Context\ContextUserAuth::getIP()
1 call to ContextUserAuth::getIP()
ContextUserAuth::switchUser in src/Context/ContextUserAuth.php
Switches to a different user.

File

src/Context/ContextUserAuth.php, line 142

Class

ContextUserAuth

Namespace

Drupal\tmgmt_smartling\Context

Code

protected function getIP() {
  return $_SERVER['REMOTE_ADDR'];
}