You are here

public function LocationInputInterface::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.

1 method overrides LocationInputInterface::hasInput()
LocationInputPluginBase::hasInput in src/LocationInput/LocationInputPluginBase.php
Checks if the location passed in is correct for the current settings.

File

src/LocationInput/LocationInputInterface.php, line 25

Class

LocationInputInterface
Defines the required methods for a Location Input plugin.

Namespace

Drupal\search_api_location\LocationInput

Code

public function hasInput(array $input, array $settings);