You are here

public function GeolocationMapPolyline::preRenderPolyline in Geolocation Field 8.3

Polyline element.

Parameters

array $render_array: Element.

Return value

array Renderable map.

File

src/Element/GeolocationMapPolyline.php, line 56

Class

GeolocationMapPolyline
Provides a render element for a single geolocation map location.

Namespace

Drupal\geolocation\Element

Code

public function preRenderPolyline(array $render_array) {
  $render_array = parent::preRenderGeolocationShape($render_array);
  $render_array['#theme'] = 'geolocation_map_polyline';
  $render_array['#attributes']
    ->addClass('geolocation-polyline');
  return $render_array;
}