public function LeafletMarker::preRender in Leaflet 2.1.x
Same name and namespace in other branches
- 8 modules/leaflet_views/src/Plugin/views/row/LeafletMarker.php \Drupal\leaflet_views\Plugin\views\row\LeafletMarker::preRender()
- 2.0.x modules/leaflet_views/src/Plugin/views/row/LeafletMarker.php \Drupal\leaflet_views\Plugin\views\row\LeafletMarker::preRender()
Allow the style to do stuff before each row is rendered.
Parameters
$result: The full array of results from the query.
Overrides RowPluginBase::preRender
File
- modules/
leaflet_views/ src/ Plugin/ views/ row/ LeafletMarker.php, line 413
Class
- LeafletMarker
- Plugin which formats a row as a leaflet marker.
Namespace
Drupal\leaflet_views\Plugin\views\rowCode
public function preRender($result) {
parent::preRender($result);
if ($result) {
$this
->getEntityTranslationRenderer()
->preRender($result);
}
}