You are here

public function Map::hasInput in Search API Location 8

Checks if the location passed in is correct for the current settings.

Parameters

array $input: The text entered by the user, contains either "value" or "lat"+"lng" as keys.

array $settings: An array of settings for the plugin.

Return value

bool True if the input is successful, false otherwise.

Overrides LocationInputPluginBase::hasInput

File

src/Plugin/search_api_location/location_input/Map.php, line 22

Class

Map
Represents the Raw Location Input.

Namespace

Drupal\search_api_location\Plugin\search_api_location\location_input

Code

public function hasInput(array $input, array $options) {
  return $input['lat'] && $input['lng'];
}