You are here

public function SuggestionInterface::getUrl in Search API Autocomplete 8

Retrieves the URL to which the suggestion should redirect.

A URL to which the suggestion should redirect instead of completing the user input in the text field. This overrides the normal behavior and thus makes the suggested keys obsolete.

Return value

\Drupal\Core\Url|null The URL to which the suggestion should redirect to, or NULL if none was set.

1 method overrides SuggestionInterface::getUrl()
Suggestion::getUrl in src/Suggestion/Suggestion.php
Retrieves the URL to which the suggestion should redirect.

File

src/Suggestion/SuggestionInterface.php, line 32

Class

SuggestionInterface
Defines a single autocompletion suggestion.

Namespace

Drupal\search_api_autocomplete\Suggestion

Code

public function getUrl();