You are here

protected function ProximityField::getCenter in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/field/ProximityField.php \Drupal\geolocation\Plugin\views\field\ProximityField::getCenter()

Get center value.

Return value

array Center value.

1 call to ProximityField::getCenter()
ProximityField::query in src/Plugin/views/field/ProximityField.php
Called to add the field to a query.
1 method overrides ProximityField::getCenter()
ProximityFormField::getCenter in src/Plugin/views/field/ProximityFormField.php
Get center value.

File

src/Plugin/views/field/ProximityField.php, line 101

Class

ProximityField
Field handler for geolocation field.

Namespace

Drupal\geolocation\Plugin\views\field

Code

protected function getCenter() {
  return $this->locationManager
    ->getLocation($this->options['center'], $this);
}