public function ProximityFilter::getLongitudeValue in Geolocation Field 8
Retrieve longitude value from configured source.
Return value
float|null Longitude value.
1 call to ProximityFilter::getLongitudeValue()
- ProximityFilter::query in src/
Plugin/ views/ filter/ ProximityFilter.php - Add this filter to the query.
File
- src/
Plugin/ views/ filter/ ProximityFilter.php, line 658
Class
- ProximityFilter
- Filter handler for search keywords.
Namespace
Drupal\geolocation\Plugin\views\filterCode
public function getLongitudeValue() {
$proximity_center = $this
->getProximityCenterBySource();
if (!is_null($proximity_center['longitude'])) {
return $proximity_center['longitude'];
}
return NULL;
}