protected function KernelTerminateSubscriber::_getReferer in Visitors 8.2
Get the address of the page (if any) which referred the user agent to the current page.
Return value
string Referer, or empty string if referer does not exist.
1 call to KernelTerminateSubscriber::_getReferer()
- KernelTerminateSubscriber::onTerminate in src/
EventSubscriber/ KernelTerminateSubscriber.php - Store visitors data when a request terminates.
File
- src/
EventSubscriber/ KernelTerminateSubscriber.php, line 134 - Contains Drupal\visitors\EventSubscriber\KernelTerminateSubscriber.
Class
- KernelTerminateSubscriber
- Store visitors data when a request terminates.
Namespace
Drupal\visitors\EventSubscriberCode
protected function _getReferer() {
return isset($_SERVER['HTTP_REFERER']) ? urldecode($_SERVER['HTTP_REFERER']) : '';
}