You are here

public function SearchApiSpellcheckSuggestionLink::createPath in Search API Spellcheck 7

Sets the property 'path' to the location of search results.

If the search key is stored in an argument then this part of the path will be updated with the suggested string.

1 call to SearchApiSpellcheckSuggestionLink::createPath()
SearchApiSpellcheckSuggestionLink::__construct in includes/SearchApiSpellcheckSuggestionLink.inc
Constructor.

File

includes/SearchApiSpellcheckSuggestionLink.inc, line 47
The class is a helpful way to provide both an updated search query link and access to all the link components for themers.

Class

SearchApiSpellcheckSuggestionLink
@file The class is a helpful way to provide both an updated search query link and access to all the link components for themers.

Code

public function createPath() {
  $args = arg();
  if ($this->method == 'arg') {
    $args[$this->method_key] = $this->suggestion;
  }
  $this->path = implode('/', $args);
}