Interface
QueryInterface
Magento\Search\Model\QueryInterface
What it does
This interface defines a contract for search query objects in Magento 2.
Developers implement this interface when creating custom search query handlers or adapters to ensure they provide a method to retrieve the search query text entered by users.
It's commonly used in search functionality customizations and third-party search engine integrations.
Public Methods
- getQueryText()