You are here

protected function GeofieldProximityArgument::unitsListMarkup in Geofield 8

Get the markup list of the Unites.

Return value

string The the markup list of the Unites.

1 call to GeofieldProximityArgument::unitsListMarkup()
GeofieldProximityArgument::buildOptionsForm in src/Plugin/views/argument/GeofieldProximityArgument.php
Provide a form to edit options for this plugin.

File

src/Plugin/views/argument/GeofieldProximityArgument.php, line 96

Class

GeofieldProximityArgument
Argument handler for geofield proximity.

Namespace

Drupal\geofield\Plugin\views\argument

Code

protected function unitsListMarkup() {
  $markup = '';
  foreach ($this->units as $k => $unit) {
    $markup .= '<br><strong>' . $k . '</strong> (for ' . $unit['label'] . ')';
  }
  return $markup;
}