Skip to content

SearchQuery ​

Type
Class
Namespace
craft\search
Inherits
craft\search\SearchQuery
Since
3.0.0

Search Query class.

View source

Public Methods ​

MethodDescription
__construct()Constructor
getQuery()Returns the given query.
getTokens()Returns the tokens.

__construct() ​

Constructor

View source

Arguments ​

getQuery() ​

Returns the given query.

View source

Returns ​

string

getTokens() ​

Returns the tokens.

View source

Returns ​

(\craft\search\SearchQueryTerm|\craft\search\SearchQueryTermGroup)[]