You are here

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

Returns the path to the configured marker directory.

2 calls to IpGeoLocGlobal::markerDirectory()
IpGeoLocGlobal::markerColors in src/Services/IpGeoLocGlobal.php
Return available marker colors for use in a select drop-down. List is compiled based on available .png files in ip_geoloc/markers dir.
IpGeoLocGlobal::markerDimensions in src/Services/IpGeoLocGlobal.php
Return the height and width of the markers in the selected set.

File

src/Services/IpGeoLocGlobal.php, line 325

Class

IpGeoLocGlobal
Class IpGeoLocGlobal.

Namespace

Drupal\ip_geoloc\Services

Code

public function markerDirectory() {
  $path = drupal_get_path('module', 'ip_geoloc');
  $marker_directory = $this->config
    ->get('ip_geoloc_marker_directory');
  $marker_folder = "{$path}/" . $this->moduleHandler
    ->moduleExists('leaflet') ? 'amarkers' : 'markers';
  return $marker_directory ? $marker_directory : $marker_folder;
}