You are here

protected function ProximityField::getCenter in Geolocation Field 8.3

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

Get center value.

Return value

array Center value.

2 calls to ProximityField::getCenter()
GeoProximityField::query in modules/geolocation_geometry/src/Plugin/views/field/GeoProximityField.php
Called to add the field to a query.
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 102

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);
}