cancel
Showing results for 
Search instead for 
Did you mean: 

Get All Product in Search Result Page in Magento 2

Get All Product in Search Result Page in Magento 2

I want to get all products in search result and tag page This code works on category page but not in search result and tag

$this->getLoadedProductCollection();

I also checked this code and no result at all

$this->getCollection();

I want to use it in list.phtml file