Tag
in package
implements
AutocompleteInterface
Tag Autocomplete Module
This class provides suggestions by using the local tag database.
Tags
Interfaces, Classes, Traits and Enums
- AutocompleteInterface
- Autocomplete Plug-In Interface
Table of Contents
- $tagsService : TagsService
- __construct() : mixed
- Constructor
- getSuggestions() : array<string|int, mixed>
- This method returns an array of strings matching the user's query for display in the autocomplete box.
- setConfig() : void
- Set parameters that affect the behavior of the autocomplete handler.
Properties
$tagsService
protected
TagsService
$tagsService
Methods
__construct()
Constructor
public
__construct(TagsService $tagsService) : mixed
Parameters
- $tagsService : TagsService
-
Tag database service
Return values
mixed —getSuggestions()
This method returns an array of strings matching the user's query for display in the autocomplete box.
public
getSuggestions(string $query) : array<string|int, mixed>
Parameters
- $query : string
-
The user query
Return values
array<string|int, mixed> —The suggestions for the provided query
setConfig()
Set parameters that affect the behavior of the autocomplete handler.
public
setConfig(string $params) : void
These values normally come from the search configuration file.
Parameters
- $params : string
-
Parameters to set