public function GeofieldGoogleMapViewStyle::getViewFilteredBundles in Geofield Map 8.2
Get the bundles defined as View Filter.
File
- src/
Plugin/ views/ style/ GeofieldGoogleMapViewStyle.php, line 1125
Class
- GeofieldGoogleMapViewStyle
- Style plugin to render a View output as a Leaflet map.
Namespace
Drupal\geofield_map\Plugin\views\styleCode
public function getViewFilteredBundles() {
$bundles = [];
$views_filters = $this->view->display_handler
->getOption('filters');
// Set the specific filtered entity types/bundles.
if (!empty($views_filters['type'])) {
$bundles = array_keys($views_filters['type']['value']);
}
return $bundles;
}