public function IpGeoLocGlobal::debug in IP Geolocation Views & Maps 8
Special debug function: messages selected user names only.
Parameters
string $message: The message string to bue output as a debug message.
string $type: Defaults to 'status'.
Return value
array|null A multidimensional array with keys corresponding to the set message types. If there are no messages set, the function returns NULL.
5 calls to IpGeoLocGlobal::debug()
- IpGeoLocGlobal::checkLocation in src/
Services/ IpGeoLocGlobal.php - Return whether a the visitor's location is due for an update.
- IpGeoLocGlobal::reinitLocation in src/
Services/ IpGeoLocGlobal.php - Reinitialises the supplied location array.
- IpGeoLocGlobal::reverseGeocodeTimeout in src/
Services/ IpGeoLocGlobal.php - Handle timeout of the Google Maps reverse-geocode callback, if enabled.
- IpGeoLocGlobal::useGeoipApiIfEnabled in src/
Services/ IpGeoLocGlobal.php - Module GeoIP API does not expose a hook, but it does expose an API.
- IpGeoLocGlobal::useSmartIpIfEnabled in src/
Services/ IpGeoLocGlobal.php - Use Smart IP (if enabled) to retrieve lat/long and address info.
File
- src/
Services/ IpGeoLocGlobal.php, line 557
Class
- IpGeoLocGlobal
- Class IpGeoLocGlobal.
Namespace
Drupal\ip_geoloc\ServicesCode
public function debug($message, $type = 'status') {
if ($this
->debugFlag()) {
return $this->messenger
->addMessage($message, $type, FALSE);
}
}