You are here

function hook_leaflet_views_feature_alter in Leaflet 8

Same name in this branch
  1. 8 leaflet.api.php \hook_leaflet_views_feature_alter()
  2. 8 modules/leaflet_views/leaflet_views.api.php \hook_leaflet_views_feature_alter()
Same name and namespace in other branches
  1. 2.1.x modules/leaflet_views/leaflet_views.api.php \hook_leaflet_views_feature_alter()
  2. 2.0.x modules/leaflet_views/leaflet_views.api.php \hook_leaflet_views_feature_alter()

Alter Leaflet View Style Point / Marker definition.

Parameters

array $point: The Point / Marker definition.

\Drupal\views\ResultRow $result: The view row result.

\Drupal\views\Plugin\views\row\RowPluginBase $rowPlugin: The rowPlugin.

2 invocations of hook_leaflet_views_feature_alter()
LeafletMap::render in modules/leaflet_views/src/Plugin/views/style/LeafletMap.php
Renders the View.
LeafletMarker::renderLeafletMarkers in modules/leaflet_views/src/Plugin/views/row/LeafletMarker.php
Converts the given list of geo data points into a list of leaflet markers.

File

./leaflet.api.php, line 115
API documentation for Administration menu.

Code

function hook_leaflet_views_feature_alter(array &$point, ResultRow &$result, RowPluginBase $rowPlugin) {

  // Make custom alterations to $point, eventually using others contexts
  // definitions..
}