You are here

public function LeafletMarker::preRender in Leaflet 2.0.x

Same name and namespace in other branches
  1. 8 modules/leaflet_views/src/Plugin/views/row/LeafletMarker.php \Drupal\leaflet_views\Plugin\views\row\LeafletMarker::preRender()
  2. 2.1.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\row

Code

public function preRender($result) {
  parent::preRender($result);
  if ($result) {
    $this
      ->getEntityTranslationRenderer()
      ->preRender($result);
  }
}