protected static function Leaflet::hasFeatureGroups in Leaflet 8
Same name and namespace in other branches
- 2.1.x modules/leaflet_views/src/Plugin/views/style/Leaflet.php \Drupal\leaflet_views\Plugin\views\style\Leaflet::hasFeatureGroups()
- 2.0.x modules/leaflet_views/src/Plugin/views/style/Leaflet.php \Drupal\leaflet_views\Plugin\views\style\Leaflet::hasFeatureGroups()
Checks whether the given array of features contains any groups.
Parameters
array $features: The features.
Return value
bool The result.
1 call to Leaflet::hasFeatureGroups()
- Leaflet::render in modules/
leaflet_views/ src/ Plugin/ views/ style/ Leaflet.php - Render the display in this style.
File
- modules/
leaflet_views/ src/ Plugin/ views/ style/ Leaflet.php, line 226
Class
- Leaflet
- Style plugin to render a View output as a Leaflet map.
Namespace
Drupal\leaflet_views\Plugin\views\styleCode
protected static function hasFeatureGroups(array $features) {
foreach ($features as $feature) {
if (!empty($feature['group'])) {
return TRUE;
}
}
return FALSE;
}