You are here

protected function GeoJson::renderNameField in Views GeoJSON 8

Retrieves the name field value.

Parameters

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

Return value

string The main field value.

1 call to GeoJson::renderNameField()
GeoJson::renderRow in src/Plugin/views/style/GeoJson.php
Render views fields to GeoJSON.

File

src/Plugin/views/style/GeoJson.php, line 521

Class

GeoJson
Style plugin to render view as GeoJSON code.

Namespace

Drupal\views_geojson\Plugin\views\style

Code

protected function renderNameField(ResultRow $row) {
  return $this
    ->renderMainField($row, 'name_field');
}