You are here

protected function ProximityFormField::getCenter in Geolocation Field 8.3

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

Get center value.

Return value

array Center value.

Overrides ProximityField::getCenter

1 call to ProximityFormField::getCenter()
ProximityFormField::viewsForm in src/Plugin/views/field/ProximityFormField.php
Provide a more useful title to improve the accessibility.

File

src/Plugin/views/field/ProximityFormField.php, line 132

Class

ProximityFormField
Field handler for geolocation field.

Namespace

Drupal\geolocation\Plugin\views\field

Code

protected function getCenter() {
  if (empty($this->centerValue)) {
    $this->centerValue = $this->locationInputManager
      ->getCoordinates((array) $this->view
      ->getRequest()
      ->get('center', []), $this->options['center'], $this);
  }
  return $this->centerValue;
}