You are here

public function IpGeoLocPluginStyleLeaflet::isNoMarker in IP Geolocation Views & Maps 8

Checks if marker color is a good value.

Parameters

mixed $marker_color: The color of the marker.

Return value

bool TRUE if marker color is "0", zero, or FALSE FALSE if marker color equals '' or NULL

1 call to IpGeoLocPluginStyleLeaflet::isNoMarker()
IpGeoLocPluginStyleLeaflet::render in src/Plugin/views/style/IpGeoLocPluginStyleLeaflet.php
Transform the View result in a list of marker locations and render on map.

File

src/Plugin/views/style/IpGeoLocPluginStyleLeaflet.php, line 1292

Class

IpGeoLocPluginStyleLeaflet
Views Style plugin extension for Leaflet (if enabled).

Namespace

Drupal\ip_geoloc\Plugin\views\style

Code

public function isNoMarker($marker_color) {
  return isset($marker_color) && ($marker_color === '0' || $marker_color === 0 || $marker_color === FALSE);
}