DataProviderInterface
Magento\Search\Model\Autocomplete\DataProviderInterface
What it does
This interface defines the contract for autocomplete data providers in Magento 2's search functionality.
Developers implement this interface to create custom data sources for search suggestions, such as products, categories, or CMS pages that appear in the search autocomplete dropdown.
Each implementation must provide a getItems() method that returns an array of autocomplete suggestions.
Public Methods
- getItems()