You are here

public function IpGeoLocGlobal::isFirstClick in IP Geolocation Views & Maps 8

Returns whether this was the first click of the session.

Return value

bool TRUE if it was, i.e. if there has been no position check before.

File

src/Services/IpGeoLocGlobal.php, line 61

Class

IpGeoLocGlobal
Class IpGeoLocGlobal.

Namespace

Drupal\ip_geoloc\Services

Code

public function isFirstClick() {
  $last_position_check = $this->ipGeolocSession
    ->getSessionValue('last_position_check');
  return empty($last_position_check);
}