public __construct ( Magento\Search\Model\QueryFactory $queryFactory, Magento\Search\Model\Autocomplete\ItemFactory $itemFactory, |
||
$queryFactory | Magento\Search\Model\QueryFactory | Search query text factory. |
$itemFactory | Magento\Search\Model\Autocomplete\ItemFactory | Suggest terms item facory. |
$configurationHelper | Autocomplete configuration helper. | |
$type | string | Autocomplete items type. |
public function __construct(QueryFactory $queryFactory, ItemFactory $itemFactory, ConfigurationHelper $configurationHelper, $type = self::AUTOCOMPLETE_TYPE)
{
$this->queryFactory = $queryFactory;
$this->itemFactory = $itemFactory;
$this->configurationHelper = $configurationHelper;
$this->type = $type;
}