You are here

protected function KernelTerminateSubscriber::_getUrl in Visitors 8.2

Get full path request uri.

Return value

string Full path.

1 call to KernelTerminateSubscriber::_getUrl()
KernelTerminateSubscriber::onTerminate in src/EventSubscriber/KernelTerminateSubscriber.php
Store visitors data when a request terminates.

File

src/EventSubscriber/KernelTerminateSubscriber.php, line 122
Contains Drupal\visitors\EventSubscriber\KernelTerminateSubscriber.

Class

KernelTerminateSubscriber
Store visitors data when a request terminates.

Namespace

Drupal\visitors\EventSubscriber

Code

protected function _getUrl() {
  return urldecode(sprintf('http://%s%s', $_SERVER['HTTP_HOST'], $this->request
    ->getRequestUri()));
}